This script detects if flash 6 is installed.
If yes, then display movie,
If no, then display image.
HOWEVER, in netscape, I can tell which version of flash is installed. When in netscape and wrong version of flash installed, a blank area appears where the flash movie "would" appear.
Any ideas on how to fix the script to check for version in netscape
THANKS
<SCRIPT LANGUAGE="JavaScript">
var agt=navigator.userAgent.toLowerCase();
var ie = (agt.indexOf("msie"
!= -1);
var ns = (navigator.appName.indexOf("Netscape"
!= -1);
var win = ((agt.indexOf("win"
!=-1) || (agt.indexOf("32bit"
!=-1));
var mac = (agt.indexOf("mac"
!=-1);
var flash6 = false;
if (ie) {
result = false;
document.write('<SCRIPT LANGUAGE="VBScript">\n on error resume next \n result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"
)<\/SCRIPT>');
if (result)
{
flash6 = true; }
}
if (ns) {
if (navigator.plugins["Shockwave Flash"])
{ flash6 = true }
}
if (flash6){
document.write(' <img src="" width="1" height="1">');
document.write('<object classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,29,0" width="450" height="237">');
document.write(' <param name="movie" value="principals.swf">');
document.write(' <param name="quality" value="high">');
document.write(' <embed src="principals.swf" quality="high" pluginspage="http:\/\/ type="application\/x-shockwave-flash" width="450" height="237"><\/embed>');
document.write('<\/object>');
}
else {
document.write('<img src="6principles.gif" width="450" height="237">');
}
</SCRIPT>
If yes, then display movie,
If no, then display image.
HOWEVER, in netscape, I can tell which version of flash is installed. When in netscape and wrong version of flash installed, a blank area appears where the flash movie "would" appear.
Any ideas on how to fix the script to check for version in netscape
THANKS
<SCRIPT LANGUAGE="JavaScript">
var agt=navigator.userAgent.toLowerCase();
var ie = (agt.indexOf("msie"
var ns = (navigator.appName.indexOf("Netscape"
var win = ((agt.indexOf("win"
var mac = (agt.indexOf("mac"
var flash6 = false;
if (ie) {
result = false;
document.write('<SCRIPT LANGUAGE="VBScript">\n on error resume next \n result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"
if (result)
{
flash6 = true; }
}
if (ns) {
if (navigator.plugins["Shockwave Flash"])
{ flash6 = true }
}
if (flash6){
document.write(' <img src="" width="1" height="1">');
document.write('<object classid="clsid
document.write(' <param name="movie" value="principals.swf">');
document.write(' <param name="quality" value="high">');
document.write(' <embed src="principals.swf" quality="high" pluginspage="http:\/\/ type="application\/x-shockwave-flash" width="450" height="237"><\/embed>');
document.write('<\/object>');
}
else {
document.write('<img src="6principles.gif" width="450" height="237">');
}
</SCRIPT>