js给每个td增加onmouseover,onclick属性

发布:2010-11-23 15:13   点击683次   评论:0

var muItems = document.getElementById(''hmMenu'').getElementsByTagName(''td'');
for(var i = 0;i<muItems.length;i++)
{
  if(isFirefox){
    muItems[i].setAttribute("Onmouseover","muOver(this)");
  }else{
 muItems[i].setAttribute("Onmouseover",function(){muOver(this)});
  }
}

关于 GitHub 导航 部门 反馈

提示:`/home.php`入口数据仅为演示功能,不构成任何交易凭证,也不承担相关风险和责任!

Copyright © 2011-2018 xxxxx.com All rights reserved.

Run:2.764/28.341(ms); 7(sql)/2.875(MB); comm:news/detail; Upd:2025-01-11 04:57:28