Beiträge von Eagel

    Wie kann ich in folgendes Script für nur ein Bild einen Link anlegen.



    <html>





    <head>


    <script type="text/javascript" language="JavaScript">


    var cell=-1;
    var bnumb = navigator.appVersion;
    var rel = bnumb.substring( 0 , 2 );
    var bname = navigator.appName;
    bgood=0;


    test ()


    function test ( ) {
    if ((parseInt( rel ) >= 3.0 && bname=="Netscape") || (parseInt( rel ) >= 4.0 && bname=="Microsoft Internet Explorer"))
    load ( )
    }





    function load ( ) {
    bgood=1;
    aImage= new Array (8)
    aTime= new Array (8)
    for (i=0; i < 9; i++) {
    aImage[i] = new Image ()
    }
    aImage[0].src = "0.jpg";
    aImage[1].src = "1.jpg";
    aImage[2].src = "2.jpg";
    aImage[3].src = "3.jpg";
    aImage[4].src = "4.jpg";
    aImage[5].src = "5.jpg";
    aImage[6].src = "6.jpg";
    aImage[7].src = "7.jpg";
    aImage[8].src = "8.jpg";
    // zeiten für die Anzeige hier festlegen
    aTime[0]= 1000;
    aTime[1]= 1000;
    aTime[2]= 1000;
    aTime[3]= 1000;
    aTime[4]= 1000;
    aTime[5]= 1000;
    aTime[6]= 1000;
    aTime[7]= 1000;
    aTime[8]= 1000;
    }


    var cnt= 8;
    var i=0
    function ani () {
    cell=cell+1;
    if (cell==0) setTimeout ("ani ()",aTime[cell]);
    else if (cell >0 && cell <= cnt) {
    document.images['bild01'].src=aImage[cell].src;
    setTimeout ("ani ()",aTime[cell]);
    }
    else if (cell >cnt) {
    document.images['bild01'].src=aImage[0].src;
    cell=-1;
    ani ();
    }
    }
    // End -->
    </script>
    </head>


    <body onLoad="ani();" ... >







    </body>
    </html>