//-------------------------------------------------
//
// 模仿网易(163)首页Ajax功能中的鼠标延时触发
// 制作人:Toajax.com
// QQ:25554448
// 06/11/30
//
//--------------------------------------------------
var waitInterval=null;
function ff()
{
c.src="4.gif";
}
function gg()
{
c.src="3.gif";
}
</script>
<img src="1.jpg" id="aa" onmouseover="c.src='1.jpg'">无延时<br><br>
<img src="1.jpg" id="a" onmouseover="waitInterval=window.setTimeout('ff();',1000);" onmouseout="clearTimeout(waitInterval);">有延时<br><br>
<img src="2.gif" id="b" onmouseover="waitInterval=window.setTimeout('gg();',1000);" onmouseout="clearTimeout(waitInterval);">有延时<br><br>
<img src="3.gif" id="c"><br><br>