I'm trying to figure out how to handle this and am left scratching my head. I can put a noscript in here so it will show a single image if javascript is disabled, the noscript is easy enough, but how do you hide the javascript img so i don't get the missing image (red x)? I don't think php can detirmine if JS is on or off so... Here's the code, any suggestions greatly appreciated
javascript noscript question
3
I'm trying to figure out how to handle this and am left scratching my head. I can put a noscript in here so it will show a single image if javascript is disabled, the noscript is easy enough, but how do you hide the javascript img so i don't get the missing image (red x)? I don't think php can detirmine if JS is on or off so...
Here's the code, any suggestions greatly appreciated
Here's the code, any suggestions greatly appreciated
PHP Code:
<img src="" name="Rotating" id="Rotating1"/>
<script language="JavaScript">
var ImageArr1 = new Array("1.jpg","2.jpg","3.jpg");
var ImageHolder1 = document.getElementById('Rotating1');
function RotateImages(whichHolder,Start)
{
var a = eval("ImageArr"+whichHolder);
var b = eval("ImageHolder"+whichHolder);
if(Start>=a.length)
Start=0;
b.src = a[Start];
window.setTimeout("RotateImages("+whichHolder+","+(Start+1)+")",2500);
}
RotateImages(1,0);
</script>
- wayfarer
- [1] reply
- coog
- hemu588 Banned
Next Topics on Trending Feed
-
3