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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    External .js swing works fine in Firefox, but not in IE

    Hi,

    I'm trying to use an external Countdown js in my html. It works fine in Firefox but not in IE. I have put both the .js and html in the same folder. Below is the address.

    http://elfland.0fees.net/


    this is the html code
    <html>
    <body>
    <script language="javascript" type="text/javascript" src="counter.js" "></script><script type="text/javascript">_yy="2009";_mm="1";_dd="21";_hh="22";_title="L.H.D.P.";counter2_function();</script>
    </body>
    </html>


    this is the counter.js code
    function counter2_function(){
    document.write('<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="160" height="160">');
    document.write('<param name="movie" value="http://www.petitmall.jp/index/parts/counter2.swf"/>');
    document.write('<param name="wmode" value="transparent"/>');
    document.write('<param name="quality" value="high"/>');
    document.write('<param name="FlashVars" value="yy='+_yy+'&mm='+_mm+'&dd='+_dd+'&hh='+_hh+'&titler='+_title+'"/>');
    document.write('<embed src="http://www.petitmall.jp/index/parts/counter2.swf" quality="high" width="150" height="180" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" FlashVars="yy='+_yy+'&mm='+_mm+'&dd='+_dd+'&hh='+_hh+'&titler='+_title+'"/>');
    document.write('</object>');
    }



    I'm using IE 7.0.5730.11 and Firefox 3.0.4 and I'm not familar with html coding. Would someone help me out here please.

    Thanks a lot~

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    did you try reversing the order?

    Code:
    <script type="text/javascript">_yy="2009";_mm="1";_dd="21";_hh="22";_title="L.H.D.P.";counter2_function();</script>
    <script language="javascript" type="text/javascript" src="counter.js" "></script>
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow


  •  

    Posting Permissions

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