If someone can spot something here that is broken would be greatly appreciated. Also, maybe there is a better routine for detecting and displaying the flash header?
TIA...
Code
<!-- Begin Flash Detection (Flashplayer 6) -->
<!--
// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.
if (!useRedirect) { // if dynamic embedding is turned on
if(hasRightVersion) { // if we've detected an acceptable version
var oeTags = '<td rowspan="2">'
+ ''
+ '<PARAM name="MOVIE" value="<!--[$imagepath]-->/logo.swf">'
+ '<PARAM name="PLAY" value="true">'
+ '<PARAM name="LOOP" value="false">'
+ '<PARAM name="QUALITY" value="high">'
+ '<PARAM name="MENU" value="false">'
+ '<EMBED SRC="<!--[$imagepath]-->/logo.swf"'
+ 'WIDTH="593" HEIGHT="124"'
+ 'PLAY="true"'
+ 'loop="false"'
+ 'QUALITY="high"'
+ 'MENU="false"'
+ 'TYPE="application/x-shockwave-flash"'
+ 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
+ '</EMBED>'
+ '</td>';
document.write(oeTags); // embed the flash movie
} else { // flash is too old or we can't detect the plugin
// NOTE: height, width are required!
var alternateContent = '<td rowspan="2"><IMG SRC="<!--[$imagepath]-->/wvLogoArea.jpg" HEIGHT="124" WIDTH="593"></td>' ;
document.write(alternateContent); // insert non-flash content
}
}
// -->
<NOSCRIPT>
<td rowspan="2"><img src="<!--[$imagepath]-->/wvLogoArea.jpg" alt=""></td>
</NOSCRIPT>
<!-- End Flash Detection -->
<!--
// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.
if (!useRedirect) { // if dynamic embedding is turned on
if(hasRightVersion) { // if we've detected an acceptable version
var oeTags = '<td rowspan="2">'
+ ''
+ '<PARAM name="MOVIE" value="<!--[$imagepath]-->/logo.swf">'
+ '<PARAM name="PLAY" value="true">'
+ '<PARAM name="LOOP" value="false">'
+ '<PARAM name="QUALITY" value="high">'
+ '<PARAM name="MENU" value="false">'
+ '<EMBED SRC="<!--[$imagepath]-->/logo.swf"'
+ 'WIDTH="593" HEIGHT="124"'
+ 'PLAY="true"'
+ 'loop="false"'
+ 'QUALITY="high"'
+ 'MENU="false"'
+ 'TYPE="application/x-shockwave-flash"'
+ 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
+ '</EMBED>'
+ '</td>';
document.write(oeTags); // embed the flash movie
} else { // flash is too old or we can't detect the plugin
// NOTE: height, width are required!
var alternateContent = '<td rowspan="2"><IMG SRC="<!--[$imagepath]-->/wvLogoArea.jpg" HEIGHT="124" WIDTH="593"></td>' ;
document.write(alternateContent); // insert non-flash content
}
}
// -->
<NOSCRIPT>
<td rowspan="2"><img src="<!--[$imagepath]-->/wvLogoArea.jpg" alt=""></td>
</NOSCRIPT>
<!-- End Flash Detection -->
edited by: mesteele101, Jan 01, 2009 - 06:15 AM
