Javascript - Resimlerle Slayt Gösterisi Yapmak

    Javascript - Resimlerle Slayt Gösterisi Yapmak

    Javascript Resimlerle Slayt Gösterisi Yapmak
    <!-- THREE STEPS TO INSTALL IMAGE CYCLER:

    1. Copy the coding into the HEAD of your HTML document
    2. Add the onLoad event handler into the BODY tag
    3. Put the last coding into the BODY of your HTML document -->

    <!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

    <HEAD>

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Original: D. Keith Higgs (dkh2@po.cwru.edu) -->

    <! >
    <! >

    <!-- Begin
    var timeDelay = 20; // change delay time in seconds
    var Pix = new Array
    ("01.jpg"
    ,"02.jpg"
    ,"03.jpg"
    ,"04.jpg"
    );
    var howMany = Pix.length;
    timeDelay *= 1000;
    var PicCurrentNum = 0;
    var PicCurrent = new Image();
    PicCurrent.src = Pix[PicCurrentNum];
    function startPix() {
    setInterval("slideshow()", timeDelay);
    }
    function slideshow() {
    PicCurrentNum++;
    if (PicCurrentNum == howMany) {
    PicCurrentNum = 0;
    }
    PicCurrent.src = Pix[PicCurrentNum];
    document["ChangingPix"].src = PicCurrent.src;
    }
    // End -->
    </script>
    </HEAD>

    <!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->

    <BODY OnLoad="startPix()">

    <!-- STEP THREE: Copy this code into the BODY of your HTML document -->

    <img name="ChangingPix" src="01.jpg">



    <!-- Script Size: 1.31 KB -->

[ Geri ] - [ Ana Sayfa ] - Bookmark and Share


travesti