外行请教 鼠标事件问题
我对js可以说是一点不懂,请教高手下面该怎么写
if (document.onmouseover==true)
{timecount=1000}
else
{timecount=1000}
我就是想让鼠标在网页里是变量是一个值离开网页是另外一个值,我还不想通过body里做事件传送,上面的意思该怎么写啊
如何判断现在鼠标是否在页面上面
document.onmouseover==true
只是我的想法而已,根本不知道怎么写
[解决办法]
- HTML code
<script language="javascript">var timecount =1000;document.onmouseover=function(){alert(1);timecount=1000;}document.onmouseout=function(){timecount=2000alert(2);}</script>
[解决办法]
看看介个