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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Iframe and positioning

Status
Not open for further replies.

KellyHero

Programmer
Jun 10, 2002
14
US
I have a Flash movie that I want to display in a DHTML layer and to position it at the top center of the page. Like so:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase=" ID=logo WIDTH=450 HEIGHT=241 style="position:absolute; width:450; height:241; top:25; left:50%; margin-left:-189; visibility:visible; z-index:1;">
<PARAM NAME=movie VALUE="movie.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=wmode VALUE=transparent>
<PARAM NAME=bgcolor VALUE=#020769>
<EMBED src="movie.swf" quality=high wmode=transparent bgcolor=#020769 WIDTH=450 HEIGHT=241 TYPE="application/x-shockwave-flash" PLUGINSPAGE="</OBJECT>

This works fine if I put the code above directly into the page.

However, on the same page I have an iframe. Is it possible to put the above code on the page being called into my iframe and still have it centered at the top of the parent page instead of the top of the page in the iframe?
Thx,
Kelly
 

Sure it is. Simply create an HTML page with your flash code on (minus the positioning), load it into the iframe (using the SRC attribute), and position your iframe as you have done for your Flash movie.

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top