Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Feb 2005
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Embed SWF not showing up correctly in firefox

    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:


    Code:
    <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
    Code:
    }
    #centercontent {
    background:#fff;
    position:absolute;
    font:Arial, Helvetica, sans-serif;
    top: 10px;
    left: 151px;
    width: 675px;
    voice-family: "\"}\"";
    voice-family: inherit;
    }

  • #2
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Code:
    <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.
    Forget style. Code to semantics. Seperate style from structure, and structure from behaviour.
    I code to specs, and test only in Firefox (unless stated otherwise).

  • #3
    New Coder
    Join Date
    Feb 2005
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It shows up fine, just doesn't align correctly. It shows up in the upper left corner

  • #4
    New Coder
    Join Date
    Feb 2005
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nevermind, you were right it fixed it. Thanks a lot

  • #5
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •