如果一个用户在网站上的任何一个页面停止几分钟不动,如何让他执行一个.AVI或Flash文件

如果一个用户在网站上的任何一个页面停止几分钟不动,如何让他执行一个.AVI或Flash文件
---------------------------------------------------------------

用javascript做个客户端计时脚本,一旦时间超过了定值,就跳转到.AVI或Flash文件
---------------------------------------------------------------

也可以让页面自动刷新,同时开一个avi,缺点是刚进去时会开一次avi
---------------------------------------------------------------

还是用跳转页面吧,跳转到有avi或flash的页面,本页实现比较困难,要用xml

1<meta content="5;url=AviorFlash.htm" http-equiv="refresh"/>

//5秒钟后跳到avi页面

---------------------------------------------------------------

1<script>   
2var t = setTimeout('alert()',5000)   
3</script>
1<body onmousemove="clearTimeout(t);t = setTimeout('alert()',5000);">
2</body>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus