ďťż
Podstrony
|
telcocafeJak zrobić aby po czasie np. 10 sekund zmienial sie banner na mojej stronie??<script> // Set speed (milliseconds) var speed = 1000 // Specify the image files var Pic = new Array() // don't touch this // to add more images, just continue // the pattern, adding to the array below Pic[0] = 'banner1' Pic[1] = 'banner2' Pic[2] = 'banner3' // ======================================= // do not edit anything below this line // ======================================= var t var j = 0 var p = Pic.length var preLoad = new Array() for (i = 0; i < p; i++){  preLoad[i] = new Image()  preLoad[i].src = Pic[i] } function runSlideShow(){  document.images.SlideShow.src = preLoad[j].src  j = j + 1  if (j > (p-1)) j=0  t = setTimeout('runSlideShow()', speed) } </script> Definicja BODY <body onload="runSlideShow()"> W ramach BODY <table border="0" cellpadding="0" cellspacing="0"> <tr> <td id="VU" height=80 width=114> <img src="banner1" name='SlideShow' width=80 height=114></td> </tr> </table> GOOGLE :) Przydatne linki: - Skrypty Może ktoś wie jak zrobić że nie dosyć że bannery będą się zmieniać to że np jak będzie banner graffik to będzie link do graffik, a jak banner FF to będzie linkk do FF [i jak można to żeby dało sie dodać alt i title do tych bannerów] :> ?? udało mi się stworzyć coś takiego. <script> // Set speed (milliseconds) var speed = 1000 // Specify the image files var Pic = new Array() // don't touch this // to add more images, just continue // the pattern, adding to the array below Pic[0] = 'banner1.gif' Pic[1] = 'banner2.gif' Pic[2] = 'banner3.gif' var Linki = new Array() var wybrany Linki[0] = 'link1.html' Linki[1] = 'link2.html' Linki[2] = 'link3.html' // ======================================= // do not edit anything below this line // ======================================= var t var j = 0 var p = Pic.length var preLoad = new Array() for (i = 0; i < p; i++){ preLoad[i] = new Image() preLoad[i].src = Pic[i] } function runSlideShow(){ wybrany = Linki[j] document.images.SlideShow.src = preLoad[j].src j = j + 1 if (j > (p-1)) j=0 t = setTimeout('runSlideShow()', speed) } </script> Definicja BODY <body onload="runSlideShow()"> W ramach BODY <table border="0" cellpadding="0" cellspacing="0"> <tr> <td id="VU" height="80" width="114"> <img src="banner1" name="SlideShow" width="80" height="114" onclick="self.location.href = wybrany"></td> </tr> </table> nie tłumacze bo chyba wiadomo gdzie co i jak z linkami. |
|||
Sitedesign by AltusUmbrae. |