...

View Full Version : Embed SWF not showing up correctly in firefox



Hawtalta
02-20-2005, 09:42 PM
Hey all,

Here is the page in question:

http://www.hawtalta.com/media.php?swf=bike


When I am trying to embed an swf file it shows up in the top left corner instead of my center content div defined in css. It shows up fine in IE and all other types of media do as well. Anyone knwo what could be the prob. Here is code for the css and main page area:




<div id="centercontent">
<center><a href=http://www.myfreepaysite.com/?aid=hawtalta><img src="/ads/myfreepaysite.jpg"></a><br>
<br>
<iframe
src=http://iframe.**********************/promo/geotextbanner_aff.jsp?Pid=p142214c&BGColor=ffffff&LinkColor=red scrolling="No" align="MIDDLE" width="80%" height="56" frameborder="No"><br>
</iframe>
<!-- <center><A HREF=http://breakthru.com/go/f5723 target=_top><img src=http://ads.breakthru.com/banners/break/bt_234x60_01a.gif WIDTH=234 HEIGHT=60 BORDER=0></A></center>-->
<br>
<a href="http://www.hawtalta.com"><font size=4>Visit Hawtalta.com for more videos</font> </a><br>
<a href="http://www.hawtalta.com/forums"><font size=4>Join the forums!</font></a><br>
<br>

<?
if ($img) {
print("<img src=\"media/img/$img\">");
} else if ($swf) {

print("<param name=\"movie\" value=\"media/swf/$swf.swf\">");
print("<embed src=\"media/video/$swf.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"550\" height=\"400\"></embed></object>");
}
else if ($wmv) {
print("<embed src=\"media/video/$wmv.wmv\" filename=\"media/video/$wmv.wmv\" autostart=\"True\" showcontrols=\"True\" showstatusbar=\"False\" width=\"320\" height=\"311\" showdisplay=\"False\" autorewind=\"True\">");
print("</embed><br>");
print("Can't see the video? Download <a href=\"media/video/$wmv.wmv\"> here </a>");
} else if ($mpg) {
print("<embed src=\"media/video/$mpg.mpg\" filename=\"media/video/$mpg.mpg\" autostart=\"True\" showcontrols=\"True\" showstatusbar=\"False\" width=\"320\" height=\"311\" showdisplay=\"False\" autorewind=\"True\">");
print("</embed><br>");
print("Can't see the video? Download <a href=\"media/video/$mpg.mpg\"> here </a>");
} else if ($avi) {
print("<embed src=\"media/video/$avi.avi\" filename=\"media/video/$avi.avi\" autostart=\"True\" showcontrols=\"True\" showstatusbar=\"False\" width=\"320\" height=\"311\" showdisplay=\"False\" autorewind=\"True\">");
print("</embed><br>");
print("Can't see the video? Download <a href=\"media/video/$avi.avi\"> here </a>");
} else if ($mpeg) {
print("<embed src=\"media/video/$mpeg.mpeg\" filename=\"media/video/$mpeg.mpeg\" autostart=\"True\" showcontrols=\"True\" showstatusbar=\"False\" width=\"320\" height=\"311\" showdisplay=\"False\" autorewind=\"True\">");
print("</embed><br>");
print("Can't see the video? Download <a href=\"media/video/$mpeg.mpeg\"> here </a>");
} else if ($mov) {
print("<embed src=\"media/video/$mov.mov\" filename=\"media/video/$mov.mov\" autostart=\"True\" showcontrols=\"True\" showstatusbar=\"False\" width=\"320\" height=\"311\" showdisplay=\"False\" autorewind=\"True\">");
print("</embed><br>");
print("Can't see the video? Download <a href=\"media/video/$mov.mov\"> here </a>");
}
else if ($mp3) {
print("<embed src=\"media/video/$mp3.mp3\" filename=\"media/video/$mp3.mp3\" autostart=\"True\" showcontrols=\"True\" showstatusbar=\"False\" width=\"320\" height=\"311\" showdisplay=\"False\" autorewind=\"True\">");
print("</embed><br>");
print("Can't see the video? Download <a href=\"media/video/$mp3.mp3\"> here </a>");
}
else if ($asf) {
print("<embed src=\"media/video/$asf.asf\" filename=\"media/video/$asf.asf\" autostart=\"True\" showcontrols=\"True\" showstatusbar=\"False\" width=\"320\" height=\"311\" showdisplay=\"False\" autorewind=\"True\">");
print("</embed><br>");
print("Can't see the video? Download <a href=\"media/video/$asf.asf\"> here </a>");
}
?>
<br>
<br>
<font size=4>Funny videos, links, news, girls posted daily!</font>
</center>
</div>

CSS


}
#centercontent {
background:#fff;
position:absolute;
font:Arial, Helvetica, sans-serif;
top: 10px;
left: 151px;
width: 675px;
voice-family: "\"}\"";
voice-family: inherit;
}

hemebond
02-20-2005, 11:42 PM
<object type="application/x-shockwave-flash" data="test.swf" height="90" width="675">
<param name="movie" value="test.swf">
</object>That's all you need for Gecko browsers. The param is in there because of IE.

Hawtalta
02-22-2005, 02:10 AM
It shows up fine, just doesn't align correctly. It shows up in the upper left corner

Hawtalta
02-22-2005, 02:21 AM
Nevermind, you were right it fixed it. Thanks a lot :thumbsup:

rmedek
02-22-2005, 02:28 AM
Did you just fix it? It aligns fine for me; that is, in the center of the #centercontent div.

BTW, I don't think posting links to your site is appropriate here given the subject matter, i.e., a porn traffic site.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum