Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: slideshow

Parašė idomusis· 2011 Sau. 7 14:01:23
#1

sveiki, taigi susiradau slideshow koda, bet negaliu suprast kame problema, parasau vienas po kitu, nes tipo man reik kad keistusi paveiksliukas ir kaina. parasiau viena po kitu koda ir pats pirmas skriptas sustoja, rodo tik viena paveiksleli, va kodas :


<script>
var slideShowSpeed = 5000
 
var crossFadeDuration = 3
 
var Pic = new Array() // don't touch this
 
Pic[0] = 'vidus_11.gif'
Pic[1] = 'gas sig.jpg'
Pic[2] = 'Sys.jpg'
Pic[3] = 'tuook.jpg'
Pic[4] = 'gas sig.jpg'
Pic[5] = 'ko.jpg'
 
 
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(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
</script>
 
 
<body onload="runSlideShow()">
 
 
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td id="VU" height=250 width=350>
<img src="ges sig.jpg" name='SlideShow' width=350 height=250></td>
</tr>
</table>

Redagavo idomusis· 2011 Sau. 7 16:01:53