Hi everyone.

Sorry - also posted this on HTML forum by mistake.

Fairly new to html. Any ideas why this little bit of code doesn't work in IE but fine on Chrome:

<script type="text/javascript">
var reimg
window.onload=function () {
reimg=document.getElementById('re')
setInterval(function () {
reimg.src=reimg.src.replace(/\?.*/,function () {
return '?'+new Date()
})
},5)
}
</script>

<img src="" id="re" width="" height="">

Any help would be very much appreciated!