PDA

View Full Version : Float swf file to left-bottom of browser



Purik
January 26th, 2009, 08:27 AM
Hi everyone
I want align my flash file to the left-bottom of browser in float mode for all resolution its position fixed to the left-bottom. I don't know how to use html, dhtml or css for this purpose.
I use DW 8 and Flash MX.

thanx for your time!

claudio
January 26th, 2009, 09:15 AM
The code below is intended to work in every major browser, except IE6. (...that's obviously a joke, since IE6 is a crappy browser :P)



/* place your SWF inside a div called footer */
#footer
{
position:fixed;
bottom:0;
left:0;
}

Purik
January 26th, 2009, 10:14 AM
which line I must place the code?


<body>
<div id="Layer1">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','260','heigh t','250','title','#footer','src','file:///E|/Download/clock1','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','file:///E|/Download/clock1' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="260" height="250" title="#footer">
<param name="movie" value="file:///E|/Download/clock1.swf" />
<param name="quality" value="high" />
<embed src="file:///E|/Download/clock1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="260" height="250"></embed>
</object>
</noscript></div>
</body>

claudio
January 26th, 2009, 10:35 AM
Place the following code inside the <head></head> tags:

<style type="text/css">
/* place your SWF inside a div called footer */
#Layer1
{
position:fixed;
bottom:0;
left:0;
}
</style>

Purik
January 26th, 2009, 11:01 AM
Thanks claudio :party:
my problem resolve by this method:
http://www.kirupa.com/forum/showthread.php?p=2430975#post2430975

marivan
October 30th, 2009, 01:40 PM
Thank you for this post, it has helped me immensely as well!
M