Newsgroup: it.comp.lang.javascript
Titolo: sono disperata....java script error

Sono disperata, questo script che dovrebbe permettermi il roll over del
menu, e la possibilita' di rimanere acceso quando rimango nella voce
desiderata, funziona solo su
Netscape 4.07 e superiori. E' possibile farlo funzionare, non dico sui
Browser 3.0, ma almeno su quelli 4.0 base?? Ho bisogno urgente di aiuto,
devo andare on line tra
tre giorni...
questo e' lo script:
<script language="JavaScript"><!--
goferit = new String;
   browserName = navigator.appName;
   browserVer = parseInt(navigator.appVersion);
          if ( browserVer >= 3) goferit = "Yep";
          else goferit = "Nope";
          if (goferit == "Yep")         {
           evid = new String;
            menu1on = new Image;
    menu1on.src = "pict/menu/on_1.gif";
           menu2on = new Image;
    menu2on.src = "pict/menu/on_2.gif";
           menu3on = new Image;
    menu3on.src = "pict/menu/on_3.gif";
           menu4on = new Image;
    menu4on.src = "pict/menu/on_4.gif";
           menu5on = new Image;
    menu5on.src = "pict/menu/on_5.gif";
           menu6on = new Image;
    menu6on.src = "pict/menu/on_6.gif";
           menu7on = new Image;
    menu7on.src = "pict/menu/on_7.gif";
           menu8on = new Image;
    menu8on.src = "pict/menu/on_8.gif";
           menu9on = new Image;
    menu9on.src = "pict/menu/on_9.gif";
           menu10on = new Image;
    menu10on.src = "pict/menu/on_10.gif";
           menu11on = new Image;
    menu11on.src = "pict/menu/on_11.gif";
           menu12on = new Image;
    menu12on.src = "pict/menu/on_12.gif";
      menu13on = new Image;
    menu13on.src = "pict/menu/on_13.gif";
     menu1off = new Image;
    menu1off.src = "pict/menu/off_1.gif";
     menu2off = new Image;
    menu2off.src = "pict/menu/off_2.gif";
           menu3off = new Image;
    menu3off.src = "pict/menu/off_3.gif";
           menu4off = new Image;
    menu4off.src = "pict/menu/off_4.gif";
           menu5off = new Image;
    menu5off.src = "pict/menu/off_5.gif";
           menu6off = new Image;
    menu6off.src = "pict/menu/off_6.gif";
           menu7off = new Image;
    menu7off.src = "pict/menu/off_7.gif";
           menu8off = new Image;
    menu8off.src = "pict/menu/off_8.gif";
           menu9off = new Image;
    menu9off.src = "pict/menu/off_9.gif";
           menu10off = new Image;
    menu10off.src = "pict/menu/off_10.gif";
           menu11off = new Image;
    menu11off.src = "pict/menu/off_11.gif";
           menu12off = new Image;
    menu12off.src = "pict/menu/off_12.gif";
      menu13off = new Image;
    menu13off.src = "pict/menu/off_13.gif";
        }
function img_act(imgName) {
        if (goferit == "Yep") {
        imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;
        }
}
function img_inact(imgName) {
        if (goferit == "Yep") {
               if (evid != imgName){
                      imgOff = eval(imgName + "off.src");
                       document [imgName].src = imgOff;
                }
        }
}
function img_evid(imgName){
 if (goferit == "Yep"){
  past = evid;
  evid = imgName;
  img_inact(past);
 }
}
// -->
  </script>
Grazie mille
Roberta

tre giorni...
[snip]