Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

centering layer?

Status
Not open for further replies.

georgyboy

IS-IT--Management
Oct 20, 2002
197
AU
Hi,
I have a flash site inserted into a DW page its centered in the middle of the table and was wondering how i can make the layers i have put on the page move with the flash movie - its hard to explain what i tryin to say but if u check out and resize the window either bigger or smaller u will see what i mean.
Tahnks
 
go to
and download their snap layers extension, Then just anchor your other layers to the flash movie.

this extension is an essential tool that i use when using layers! [Hammer]
Nike Failed Slogans -- "Just Don't Do It!"
 
deecee,
thanks i got the extension but i am having alot of trouble tryin to get my layers to 'snap' to the flash movie. Either the layer wont allow the behaviour or the flash movie doesnt show up as a snappable item in the window - how do i do this or is there any other way to do this (PS I have also tried mxjunkies advice to with the same results) I havent used extensions b4 so am new to this.
Thanks
 
you need to give the flash an id

<embed ... id=&quot;flash&quot;>

then you would use flash as the object to snap,,,remembe tho nothing can go over a flash movie! [Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
deecee, i hate sound so dumb, but.........
I still cant manage to get it right. I added a id to the flash object within the properties box but still didnt get any object id in the extensions box. ?? Any ideas thanks for the help.
Regards
 
post the code from your site. [Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
heres the code deecee - thanks for the help (this code has no extension stuff done to it)
Regards

<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;>
<html>
<head>
<title>Anthony Walsh &gt;</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot;>
<!--





function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName==&quot;Netscape&quot;)&&(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);
//-->
</script>
</head>

<body bgcolor=&quot;#666666&quot; link=&quot;#FFFFFF&quot; vlink=&quot;#FFFFFF&quot; alink=&quot;#FFFFFF&quot;>
<div id=&quot;Layer1&quot; style=&quot;position:absolute; left:472px; top:505px; width:10px; height:13px; z-index:1&quot;><font color=&quot;#FFFFFF&quot;>::</font></div>
<div id=&quot;Layer2&quot; style=&quot;position:absolute; left:482px; top:506px; width:84px; height:21px; z-index:2&quot;><font color=&quot;#FFFFFF&quot;><a href=&quot; target=&quot;_blank&quot;>watercooled</a></font></div>
<div id=&quot;Layer3&quot; style=&quot;position:absolute; left:571px; top:506px; width:99px; height:18px; z-index:3&quot;><font color=&quot;#FFFFFF&quot;><a href=&quot; target=&quot;_blank&quot;>brothers
neilsen</a> </font></div>
<div id=&quot;Layer4&quot; style=&quot;position:absolute; left:679px; top:506px; width:88px; height:18px; z-index:4&quot;><font color=&quot;#FFFFFF&quot;><a href=&quot; target=&quot;_blank&quot;>ocean&amp;earth</a></font></div>
<div id=&quot;Layer5&quot; style=&quot;position:absolute; left:561px; top:505px; width:11px; height:19px; z-index:5&quot;><font color=&quot;#FFFFFF&quot;>::
</font></div>
<div id=&quot;Layer6&quot; style=&quot;position:absolute; left:669px; top:505px; width:17px; height:18px; z-index:6&quot;><font color=&quot;#FFFFFF&quot;>::</font></div>
<table width=&quot;100%&quot; height=&quot;100%&quot; border=&quot;0&quot; align=&quot;center&quot;>
<tr>
<td align=&quot;center&quot; valign=&quot;middle&quot;><object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot; width=&quot;550&quot; height=&quot;400&quot;>
<param name=&quot;movie&quot; value=&quot;2ndpreload.swf&quot;>
<param name=quality value=high>
<embed src=&quot;2ndpreload.swf&quot; quality=high pluginspage=&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;550&quot; height=&quot;400&quot;></embed>
</object></td>
</tr>
</table>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top