用mouseover事件:
例:
1.<a href="#" onmouseover="location.href='b.htm';">b.htm</a>2.
<script language=javascript>
function m_over()
{
//你要实现的功能
location.href="b.htm";   //例如要转到b.htm
}
</script>
function
<a href="#" onmouseover="m_over()';">b.htm</a>

解决方案 »

  1.   

    <a href="http://www.csdn.net" onmouseover="this.click()">鼠標移過來即可響應點擊的事件</a>
      

  2.   

    window.event.clientX/clientY代表鼠标位置。
    如过是IE5或之后版本,window.event.clientX/clientY是read/write都可以的,也就是说可以做到程序控制鼠标位置。
    至于鼠标点击,可以调用目标对象的click方法,或者使用windoes.event.button来模拟点击windoes.event.button=1表示左键点击,windoes.event.button=0恢复。(用于IE5及之后版本)
      

  3.   

    0 Default. No button is pressed. 
    1 Left button is pressed. 
    2 Right button is pressed. 
    3 Left and right buttons are both pressed. 
    4 Middle button is pressed. 
    5 Left and middle buttons both are pressed. 
    6 Right and middle buttons are both pressed. 
    7 All three buttons are pressed.