Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<script type="text/javascript">
/*<![CDATA[*/
function Link(a,ms,imgid,imgsrc,txtid,txttext){
clearTimeout(Link.to);
var img=document.getElementById(imgid),txt=document.getElementById(txtid);
if (typeof(img)=='object'&&typeof(imgsrc)=='string'){
img.src=imgsrc;
}
if (typeof(txt)=='object'&&typeof(txttext)=='string'){
txt.innerHTML=txttext;
}
if (typeof(a)=='object'&&a.href&&typeof(ms)=='number'){
Link.to=setTimeout(function(){ document.location=a.href; },ms);
return false;
}
return true;
}
/*]]>*/
</script>
</head>
<body>
<a href="http://www.vicsjavascripts.org.uk/" onclick="return Link(this,2000,'img','http://www.vicsjavascripts.org.uk/StdImages/Egypt5.jpg','txt','linking you to my site');" >Link</a>
<img id="img" src="http://www.vicsjavascripts.org.uk/StdImages/Blank.gif" />
<div id="txt" ></div>
</body>
</html>
Bookmarks