Problem mit IE & Javascript

  • habe ein paar grafiken geändernt mit javascript, also neue grafiken im cache geladen -> schnelle bereitstellung, sieht so aus:

    var main1=new Image ();
    main1.src="main1.jpg";
    var main2=new Image ();
    main2.src="main2.jpg";
    function wechsel1() {
    window.document.images[0].src=main2.src;
    }
    function wechsel2() {
    window.document.images[0].src=main1.src;
    }

    und dann halt im tag onmouseover und onmouseout.
    funktioniert im ff auch prima ( http://i133.photobucket.com/albums/q54/xav…et/bildfrff.jpg )

    aber im IE werden so komische punkte / Striche / sonstwas angezeigt: ( http://i133.photobucket.com/albums/q54/xav…et/bildfrie.jpg )


    habt ihr ne ahnung, woran das liegen könnte?[/url]