Hi everyone,

The following script refreshes fine in internet explorer but with firefox it only refreshes when I refresh the browser. Can anyone tell me what I need to change to make it work for firefox? Can an 'IF' statement be added to check for browser type to make the same script work for both? Thanks for your help!!

Code:
<SCRIPT>
browserType = navigator.appName;		
newImage = new Image();
var dly;
document.write('<IMG SRC="pic.jpg?" name=Watch Alt="loading2" border=0 >');
uniq= 1;
newImage.src= 'pic.jpg?' + uniq;
SnapShot_Loop(300);
function SnapShot_Loop(delay) 
{
 dly= delay 
 if( document.all) loadNewImage();
 setTimeout("SnapShot_Loop(dly)",delay);
}
function loadNewImage()
{
Stamp = new Date();
uniq= Stamp.getTime();
document.images.Watch.src= newImage.src;
newImage.src= 'pic.jpg?' + uniq;
window.status = 'pic.jpg?' + uniq;
}
</SCRIPT>