var slideShowSpeed = 5000; var crossFadeDuration = 10; var Pic = new Array(); Pic[0] = 'img2.php?src=thumb_tv1414243216.jpg'; var Pictext = new Array(); var t = ''; 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(dat){ j = dat; 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(Pictext[j]) document.getElementById('imgn').innerHTML=Pictext[j]; if (document.all){ document.images.SlideShow.filters.blendTrans.Play(); } j = j + 1; if (j > (p-1)) j=0; t = setTimeout('runSlideShow(j)', slideShowSpeed); } function play() { clearTimeout(t); document.getElementById('tv').style.display=''; runSlideShow(0); } function playpause() { clearTimeout(t); } function stoptv() { document.getElementById('tv').style.display='none'; } function displaytv(){ document.write(''); document.write(''); }