Java script not working
I am trying to run two Java scripts on the same page. It will show the second script but not the first. Why?
Could you post your code or a link to the page so we could look at it? Kim
here is the first script:
<TD ROWSPAN="1" COLSPAN="1" WIDTH="471" HEIGHT="216">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id=topmovie width=471 height=216 codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0"> <param name="movie" value="topmovie.swf">
<param name="quality" value="high">
<param name="play" value="true">
<param name="loop" value="true">
<param name="bgcolor" value="#ffffff">
<SCRIPT LANGUAGE=JavaScript>
<!--
var ShockMode = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
if (navigator.plugins && navigator.plugins["Shockwave Flash"])
ShockMode = 1;
} if (ShockMode ) {
document.write('<embed src="topmovie.swf"');
document.write(' width=471 height=216 bgcolor="#ffffff" quality="high" loop="true"');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/">');
document.write('</EMBED>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)) { document.write('<IMG SRC="nonflash.gif" width=471 height=216>');
}
//-->
</SCRIPT><NOEMBED><IMG SRC="http://www.randomizerscript.biz/nonflash.gif" width=471 height=216 BORDER=0></NOEMBED><NOSCRIPT><IMG SRC="http://www.randomizerscript.biz/nonflash.gif" width=471 height=216 BORDER=0></NOSCRIPT></OBJECT>
</TD>
The rest of the page is encryted.
<TD ROWSPAN="1" COLSPAN="1" WIDTH="471" HEIGHT="216">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id=topmovie width=471 height=216 codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0"> <param name="movie" value="topmovie.swf">
<param name="quality" value="high">
<param name="play" value="true">
<param name="loop" value="true">
<param name="bgcolor" value="#ffffff">
<SCRIPT LANGUAGE=JavaScript>
<!--
var ShockMode = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
if (navigator.plugins && navigator.plugins["Shockwave Flash"])
ShockMode = 1;
} if (ShockMode ) {
document.write('<embed src="topmovie.swf"');
document.write(' width=471 height=216 bgcolor="#ffffff" quality="high" loop="true"');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/">');
document.write('</EMBED>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)) { document.write('<IMG SRC="nonflash.gif" width=471 height=216>');
}
//-->
</SCRIPT><NOEMBED><IMG SRC="http://www.randomizerscript.biz/nonflash.gif" width=471 height=216 BORDER=0></NOEMBED><NOSCRIPT><IMG SRC="http://www.randomizerscript.biz/nonflash.gif" width=471 height=216 BORDER=0></NOSCRIPT></OBJECT>
</TD>
The rest of the page is encryted.
here is a page online with the same problem. no encrytion
http://www.randomizerscript.biz/contact.html
http://www.randomizerscript.biz/contact.html
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.