Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
João Cândido de Souza Neto #1
Change position of layer.
Please, i need a script to with a click change position of layer.
Anybody know ???
João Cândido de Souza Neto Guest
-
Newbie need help in keeping the dragged layer in itscurrent position even after refresh
Hi, guys. How do I keep the dragged layer in its current position in the page even when the page refreshes? I have this dynamic page that needs... -
DW8 messed my relative position layer behaviors
I recently upgraded from MX to Studio 8. I have a website where I was using a series of "set text of layer" behaviors to write copy to a relative... -
How do you paste a layer in the exact position it was copied from? in a new project?
How do you paste a layer in the exact position it was copied from? in a new project? basically If I copy something from a project and open a new... -
Change Ruler Position
Hi, Is there a way to change where '0' begins on the rulers at the top and left of the document? At the moment it's set to start at -20cm at the... -
can NOT change the position of a WebUserControl on page
Right-click on the page, and select properties. Change the layout to Grid. "Christian" <christian.cambier@pandora.be> wrote in message... -
Murray *TMM* #2
Re: Change position of layer.
Use the Change Property behavior, as you can see in the code below -
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_changeProp(objName,x,theProp,theValue) { //v6.0
var obj = MM_findObj(objName);
if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
if (theValue == true || theValue == false)
eval("obj."+theProp+"="+theValue);
else eval("obj."+theProp+"='"+theValue+"'");
}
}
//-->
</script>
</head>
<body>
<div id="Layer1" style="position:absolute; left:102px; top:128px;
width:102px; height:68px; z-index:1; background-color: #FFFFCC;
layer-background-color: #FFFFCC; border: 1px none #000000;"></div>
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#333333"></td>
<td width="100%"> </td>
</tr>
</table>
<p><a href="#"
onClick="MM_changeProp('Layer1','','style.left','3 50','DIV')">LINK</a></p>
<p> </p>
</body>
</html>
I manually entered the "style.left" property....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
ANSWERS
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"João Cândido de Souza Neto" <joao@mmteleinformatica.com.br> wrote in
message news:brks76$4b$1@forums.macromedia.com...> Please, i need a script to with a click change position of layer.
>
> Anybody know ???
>
>
>
Murray *TMM* Guest



Reply With Quote

