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=JavaSc ript>
<!--
var plugin = (navigator.mime Types &&
navigator.mimeT ypes["applicatio n/x-shockwave-flash"]) ?
navigator.mimeT ypes["applicatio n/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
plugin =
parseInt(plugin .description.su bstring(plugin. description.ind exOf(".")-1)) >=
6;
}
else if (navigator.user Agent && navigator.userA gent.indexOf("M SIE")>=0
&& (navigator.user Agent.indexOf(" Windows 95")>=0 ||
navigator.userA gent.indexOf("W indows 98")>=0 ||
navigator.userA gent.indexOf("W indows NT")>=0)) {
document.write( '<SCR'+'IPT LANGUAGE=VBScri pt\> \n');
document.write( 'on error resume next \n');
document.write( 'plugin = (
IsObject(Create Object("Shockwa veFlash.Shockwa veFlash.6")))\n ');
document.write( '</SCRIPT> \n');
}
if ( plugin ) {
document.write( '<OBJECT
classid="clsid: d27cdb6e-ae6d-11cf-96b8-444553540000"') ;
document.write( '
codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" ');
document.write( ' ID=showClip WIDTH=430 HEIGHT=89>');
document.write( ' <PARAM NAME=movie VALUE="BracketC hallenge_Header 2.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=transpare nt> <PARAM
NAME=allowScrip tAccess VALUE="sameDoma in"> ');
document.write( ' <EMBED src="BracketCha llenge_Header2. swf" menu=false
quality=high scale=exactfit salign=LT bgcolor="#FFFFF F"
allowScriptAcce ss="sameDomain" ');
document.write( ' swLiveConnect=F ALSE WIDTH=430 HEIGHT=89');
document.write( ' TYPE="applicati on/x-shockwave-flash"
PLUGINSPAGE="ht tp://www.macromedia. com/shockwave/download/index.cgi?P1_Pr od_Version=Shoc kwaveFlash">');
document.write( ' </EMBED>');
document.write( ' </OBJECT>');
} else if (!(navigator.ap pName && navigator.appNa me.indexOf("Net scape")>=0
&& navigator.appVe rsion.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>