JackTheTripper
05-08-2003, 05:49 PM
This script is supposed to wait until the page is loaded, then change the image in the div to an animated gif. It works fine in IE but not ButtScrape 6 or 7. What am I missing here.
Thanks.
<html>
<script>
function runYouthAd() {
document.getElementById('youth_ad').src= "images/index/youthAd_b.gif"
}
</script>
</head>
<body onLoad="runYouthAd();">
<div id="youthAd" style="position:absolute; left:0px; top:1; z-index:7; visibility: inherit">
<img src="images/index/image1.gif" name="youth_ad">
</div>
</body>
</html>
Thanks.
<html>
<script>
function runYouthAd() {
document.getElementById('youth_ad').src= "images/index/youthAd_b.gif"
}
</script>
</head>
<body onLoad="runYouthAd();">
<div id="youthAd" style="position:absolute; left:0px; top:1; z-index:7; visibility: inherit">
<img src="images/index/image1.gif" name="youth_ad">
</div>
</body>
</html>