本文实例讲述了js实现窗口加载时模拟鼠标移动的方法。分享给大家供大家参考。具体实现方法如下:
function judge(){alert(mousemove); document.onmousemove = null;//撤销鼠标移动模拟}function simulatemousemove(){//模拟鼠标移动 document.onmousemove = judge; }window.onload=simulatemousemove;//窗口加载
希望本文所述对大家的javascript程序设计有所帮助。