philipp: Was ist da falsch an der plugin abfrage?

Beitrag lesen

HALLO LEUTE!

WAS IST DENN DA FALSCH AN DER PLUGIN ABFRAGE?
Bitte helft mir.
----------------------------------------------

<html>
<head>
<title>plugin</title>
<script language="JavaScript1.1">

if(navigator.plugin.indexOf("Flash4") != -1
{
  poss = navigator.plugin.indexOf(".") - 1;
  pose = navigator.plugin.indexOf(".");
  vers = navigator.plugin.slice(poss,pose);
  if(vers >= 3)
  {
    // href="www.zams.at/hszams/lehrer.swf"  ....das hier sollte die flash seite sein...
  }
  else if(vers < 3)
  {
    // href="www.zams.at/hszams/lehrer.htm"   ....und das die htm ohne flash sein..
  }
}

else
{
  // href="www.zams.at/hszams/lehrer.htm"   ....und das die htm ohne flash sein..
}

document.location.href = "url";

</script>
</head>
<body>

</body>
</html>