Frau Holle: Bitte Code gegenlesen

Beitrag lesen

Hallo, bitte schlagt nicht gleich die Hände über den Kopf zusammen, wenn Ihr den Code seht. Er ist nicht doll, aber für mich recht logisch. Wo liegt der Fehler?

<script type="text/javascript">

if(screen.width == 1280) <img src="Images/Navigation_oben.jpg" width="810" height="94" border="0" usemap="#navigation4">
      else
      if(screen.width == 1024) <img src="Images/Navigation_oben.jpg" width="810" height="94" border="0" usemap="#navigation2">
       else
       if(screen.width == 1152) <img src="Images/Navigation_oben.jpg" width="810" height="94" border="0" usemap="#navigation3">
        else
        if(screen.width = 800) <img src="Images/Navigation_oben.jpg" width="810" height="94" border="0" usemap="#navigation1">
         else
         if(screen.width == 1600) <img src="Images/Navigation_oben.jpg" width="810" height="94" border="0" usemap="#navigation5">;
      //-->
     </script>

Danke im vorraus :)

Gruß, Chris