<!– THREE STEPS TO INSTALL IMAGE CYCLER:

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

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

<HEAD>

<SCRIPT LANGUAGE="">
<!– 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 document –>

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

<!– Script Size: 1.31 KB –>

kaynak: ordan burdan

Tags: , , , , , , , , ,
Javascript - Resimlerle Slayt Gösterisi Yapmak (scripti, nasıl, nedir?) konusu
Benzer yazılar:
    Benzer yazı yok