Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-22-2008, 12:06 PM   PM User | #1
syncelf
New to the CF scene

 
Join Date: Nov 2008
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
syncelf is an unknown quantity at this point
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~
syncelf is offline   Reply With Quote
Old 11-23-2008, 10:29 AM   PM User | #2
shyam
Senior Coder

 
shyam's Avatar
 
Join Date: Jul 2005
Posts: 1,563
Thanks: 2
Thanked 163 Times in 160 Posts
shyam will become famous soon enough
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
shyam is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:27 PM.


Advertisement
Log in to turn off these ads.