ערכתי לאחרונה בתאריך 18.03.08 בשעה 12:01 בברכה, DiSHi
זה קוד של SLIDESHOW..
לא אני בניתי..
אם אני רוצה להוסיף לו שהתמונות שהוא מריץ יריצו בראנדום.. סדר אקראי.. איך אני עושה? הקוד מצורף..<script type="text/javascript" language="JavaScript"> // Browser Slide-Show script. // With image cross fade effect for those browsers that support it. // Script copyright (c) 2004-2006 www.cryer.co.uk. // Script is free to use provided this copyright header is included. var slideCache = new Array(); function RunSlideShow(pictureName,imageFiles,displaySecs) { var imageSeparator = imageFiles.indexOf(";"); var nextImage = imageFiles.substring(0,imageSeparator); if (document.all) { document.getElementById(pictureName).style.filter="blendTrans(duration=2)"; document.getElementById(pictureName).filters.blendTrans.Apply(); } document.getElementById(pictureName).src = nextImage; if (document.all) { document.getElementById(pictureName).filters.blendTrans.Play(); } var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length) + ';' + nextImage; setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+")", displaySecs*1000); // Cache the next image to improve performance. imageSeparator = futureImages.indexOf(";"); nextImage = futureImages.substring(0,imageSeparator); if (slideCache == null) { slideCache = new Image; slideCache.src = nextImage; } } </script> |
<img src="pics/001.jpg" width="209" height="303" id="img"> <script type="text/javascript" language="JavaScript"> RunSlideShow("img","pics/001.jpg;pics/002.jpg;pics/003.jpg;pics/004.jpg;pics/005.jpg;pics/006.jpg; + "pics/007.jpg",3); </script>
|
תודה לעוזרים..