Forum Moderators: open
<img id="something" src="image.jpg" width="400" height="300" border="0" alt="" />
That will make the image disappear after 3 seconds. Change the 3000 to 60000 to make it disappear after 60 seconds.
<script type="text/javascript">window.setTimeout("document.getElementById('something').parentNode.href = '';", 3000); </script> Note we're now finding the <img>, and fiddling with it's direct parent. If it's parent is not an <a> this will fail.
By setting href to '' I believe IE at least won't display a pointy hand icon anymore.
a good solution may be to wrap your link in a div or span tag. then rewrite the contents of that tag, such as
<span id="someID"><a href=""><img src="my.gif"></a></span>
<script type="text/javascript">
window.setTimeout("document.getElementById('someID').innerHTML='<img src=\"my.gif\">';", 3000);
</script>