PDA

View Full Version : External .js swing works fine in Firefox, but not in IE



syncelf
11-22-2008, 01:06 PM
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="clsid:D27CDB6E-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~

shyam
11-23-2008, 11:29 AM
did you try reversing the order?


<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>