一个全FLASH网站的无奈选择
时间:2005-10-13 来源:microul
www.cnlong-term.com/test
辛苦了一个晚上,找上了MM的网站,终于发现了这个方法.修改后测试成功,待投产为www.cnlong-term.com/new_site.
!~感谢访问的人士,虚心听取意见~!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="refresh" content="3;url=index_noflash.html" />
<title>flashDetection</title>
</head>
<body>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version==8,0,0,0" width="80" height="80">
<param name="movie" value="flash_detection.swf?flashContentURL=index_flash.html&altContentURL=index_noflash.html&contentVersion=8&contentMajorRevision=0&contentMinorRevision=0&allowFlashAutoInstall=false" />
<param name="quality" value="low" />
<embed src="flash_detection.swf?flashContentURL=index_flash.html&altContentURL=index_noflash.html&contentVersion=8&contentMajorRevision=0&contentMinorRevision=0&allowFlashAutoInstall=false" quality="low" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="80" height="80" />
</object>
</body>
</html>
//flash asscript
if ($version == "")
{
getURL(altContentURL, "_self");
} // end if
i = "1";
playerOS = "";
while (substring($version, i, "1") != " ")
{
playerOS = playerOS + substring($version, i, "1");
i = i + 1;
} // end while
playerVersion = "";
for (i = i + 1; substring($version, i, "1") != ","; i = i + 1)
{
playerVersion = playerVersion + substring($version, i, "1");
} // end of for
playerMajorRevision = "";
for (i = i + 1; substring($version, i, "1") != ","; i = i + 1)
{
playerMajorRevision = playerMajorRevision + substring($version, i, "1");
} // end of for
playerMinorRevision = "";
for (i = i + 1; substring($version, i, "1") != ","; i = i + 1)
{
playerMinorRevision = playerMinorRevision + substring($version, i, "1");
} // end of for
if (allowFlashAutoInstall == "true")
{
allowFlashAutoInstall == "true";
} // end if
if (playerOS == "WIN")
{
getURL(flashContentURL, "_self");
}
else if (playerVersion < contentVersion)
{
getURL(altContentURL, "_self");
}
else if (contentVersion < playerVersion)
{
getURL(flashContentURL, "_self");
}
else
{
if (playerVersion == contentVersion)
{
playerVersion == contentVersion;
} // end if
if (playerMajorRevision < contentMajorRevision)
{
getURL(altContentURL, "_self");
}
else
{
if (playerVersion == contentVersion)
{
playerVersion == contentVersion;
} // end if
if (playerVersion == contentVersion)
{
playerVersion == contentVersion;
} // end if
if (playerMajorRevision == contentMajorRevision)
{
playerMajorRevision == contentMajorRevision;
} // end if
if (playerMinorRevision < contentMinorRevision)
{
getURL(altContentURL, "_self");
}
else
{
if (playerVersion == contentVersion)
{
playerVersion == contentVersion;
} // end if
if (playerVersion == contentVersion)
{
playerVersion == contentVersion;
} // end if
if (playerMajorRevision == contentMajorRevision)
{
playerMajorRevision == contentMajorRevision;
} // end if
if (playerMinorRevision >= contentMinorRevision)
{
getURL(flashContentURL, "_self");
} // end if
} // end if
} // end if
} // end if