View Single Post
Old 10-07-2012, 08:55 PM   PM User | #1
dubsdj
New to the CF scene

 
Join Date: Oct 2012
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
dubsdj is an unknown quantity at this point
Unhappy IE10 document.images.SlideShow not working anymore

Hi to my dismay IE10 has broken my website slideshow It works with every other browser on the planet except IE10 Is IE10 picking out a coding error ? Does anybody know what I can change to make it work again?

thanks



<script>
var slideShowSpeed = 3000
var crossFadeDuration = 39
var Pictures = new Array()

Pictures[0] = 'Images/Slideshow/2.jpg'
Pictures[1] = 'Images/Slideshow/3.jpg'
Pictures[2] = 'Images/Slideshow/4.jpg'
Pictures[3] = 'Images/Slideshow/5.jpg'
Pictures[4] = 'Images/Slideshow/6.jpg'
Pictures[5] = 'Images/Slideshow/7.jpg'
Pictures[6] = 'Images/Slideshow/8.jpg'
Pictures[7] = 'Images/Slideshow/9.jpg'
Pictures[8] = 'Images/Slideshow/10.jpg'



var t
var j = 0
var p = Pictures.length

var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image()
preLoad[i].src = Pictures[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>
dubsdj is offline   Reply With Quote