M
MN
Hello all -
I was hoping I could appeal to the gurus out there as I've researched this
issue and can't seem to get this Flash movie to load at all. Below is my
javascript code that I use to detect the browser and then based on the
success of loading the plugin either show the Flash movie (swf file) or show
a jpeg. Any help is appreciated as I have adjusted the syntax of having
nested script tags within each other without any success. I've heard that
there are issues with doing this in an asp page vs. html. Maybe be easier to
paste the below code into a separate window.
<SCRIPT LANGUAGE=JavaScript>
<!--
var plugin = (navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"]) ?
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
plugin =
parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >=
6;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.userAgent.indexOf("Windows 95")>=0 ||
navigator.userAgent.indexOf("Windows 98")>=0 ||
navigator.userAgent.indexOf("Windows NT")>=0)) {
document.write('<SCR'+'IPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('plugin = (
IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
document.write('</SCRIPT> \n');
}
if ( plugin ) {
document.write('<OBJECT
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
document.write('
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ');
document.write(' ID=showClip WIDTH=430 HEIGHT=89>');
document.write(' <PARAM NAME=movie VALUE="BracketChallenge_Header2.swf">
<PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM
NAME=scale VALUE=exactfit> <PARAM NAME=salign VALUE=LT> <PARAM NAME=bgcolor
VALUE="#FFFFFF"> <PARAM NAME=wmode VALUE=transparent> <PARAM
NAME=allowScriptAccess VALUE="sameDomain"> ');
document.write(' <EMBED src="BracketChallenge_Header2.swf" menu=false
quality=high scale=exactfit salign=LT bgcolor="#FFFFFF"
allowScriptAccess="sameDomain"');
document.write(' swLiveConnect=FALSE WIDTH=430 HEIGHT=89');
document.write(' TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write(' </EMBED>');
document.write(' </OBJECT>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0
&& navigator.appVersion.indexOf("2.")>=0)){
document.write('<img src="/graphics/cstv/global/header_alt.jpg" width=430
height=89 border=0 alt="CSTV\'s 2005 Bracket Challenge">');
} //--> </SCRIPT>
I was hoping I could appeal to the gurus out there as I've researched this
issue and can't seem to get this Flash movie to load at all. Below is my
javascript code that I use to detect the browser and then based on the
success of loading the plugin either show the Flash movie (swf file) or show
a jpeg. Any help is appreciated as I have adjusted the syntax of having
nested script tags within each other without any success. I've heard that
there are issues with doing this in an asp page vs. html. Maybe be easier to
paste the below code into a separate window.
<SCRIPT LANGUAGE=JavaScript>
<!--
var plugin = (navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"]) ?
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
plugin =
parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >=
6;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.userAgent.indexOf("Windows 95")>=0 ||
navigator.userAgent.indexOf("Windows 98")>=0 ||
navigator.userAgent.indexOf("Windows NT")>=0)) {
document.write('<SCR'+'IPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('plugin = (
IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
document.write('</SCRIPT> \n');
}
if ( plugin ) {
document.write('<OBJECT
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
document.write('
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ');
document.write(' ID=showClip WIDTH=430 HEIGHT=89>');
document.write(' <PARAM NAME=movie VALUE="BracketChallenge_Header2.swf">
<PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM
NAME=scale VALUE=exactfit> <PARAM NAME=salign VALUE=LT> <PARAM NAME=bgcolor
VALUE="#FFFFFF"> <PARAM NAME=wmode VALUE=transparent> <PARAM
NAME=allowScriptAccess VALUE="sameDomain"> ');
document.write(' <EMBED src="BracketChallenge_Header2.swf" menu=false
quality=high scale=exactfit salign=LT bgcolor="#FFFFFF"
allowScriptAccess="sameDomain"');
document.write(' swLiveConnect=FALSE WIDTH=430 HEIGHT=89');
document.write(' TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write(' </EMBED>');
document.write(' </OBJECT>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0
&& navigator.appVersion.indexOf("2.")>=0)){
document.write('<img src="/graphics/cstv/global/header_alt.jpg" width=430
height=89 border=0 alt="CSTV\'s 2005 Bracket Challenge">');
} //--> </SCRIPT>