簡體   English   中英

JavaScript滑鼠問題

[英]Javascript mouse out issue

嗨,我不太了解JavaScript,目前正在嘗試調試。 鼠標懸停在滑塊上的滑塊區域上的http://llondon.online-folio.com/index.php停止旋轉,但是當我將鼠標移出該區域時,它仍然保持空閑狀態,並且不會再次開始旋轉。 這是滑塊的插件: http : //www.dynamicdrive.com/dynamicindex17/tabcontent.htm

這是停止鼠標懸停旋轉的代碼:

this.tabs[i].onmouseover = function() {
    tabinstance.expandtab(this)
    tabinstance.cancelautorun() //stop auto cycling of tabs (if running)
    return false
}

開始旋轉有一個功能

.autorun()

所以有人可以給我寫一些代碼行,以便在鼠標移出時再次開始旋轉。

您為什么不為此編寫一個鼠標移出事件?
例如
this.tabs [i] .onmouseout = function(){
tabinstance.autorun(); //重新啟動標簽頁的自動循環
返回假
}

請嘗試使用Jquerytools http://jquerytools.org/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM