Flash-sniffer til IE
Hej,Jeg har et lille problem med dette script, problemet er at hvis jeg kører det i IE uden Flash, så begynder browseren at downloade Flash i stedet for at sende mig til noflash-siden.
Er det muligt at sniffe Flash i IE???
Michael
<SCRIPT LANGUAGE=\"JavaScript\">
<!--
{
nonflashpage = \"noflash.asp\"
cantdetectpage = \"noflash.asp\"
urlsmall = \"flash_lowres.asp\"
if (navigator.appName == \"Microsoft Internet Explorer\")
{
if ((screen.width <= 800) && (screen.height <= 600))
{
window.location.href= urlsmall;
}
}
else if(navigator.plugins)
{
if(navigator.plugins[\"Shockwave Flash\"] || navigator.plugins[\"Shockwave Flash 2.0\"])
{
if ((screen.width <= 800) && (screen.height <= 600))
{
window.location.href= urlsmall;
}
}
else
{
window.location=nonflashpage;
}
}
else
{
window.location=cantdetectpage;
}
}
//-->
</SCRIPT>
