此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
楼主【magicliang2】截止到2008-07-07 14:46:32的历史汇总数据(不包括此帖):
发帖的总数量:2                        发帖的总分数:0                        
结贴的总数量:2                        结贴的总分数:0                        
无满意结贴数:2                        无满意结贴分:40                       
未结的帖子数:0                        未结的总分数:0                        
结贴的百分比:100.00%               结分的百分比:---------------------
无满意结贴率:100.00%               无满意结分率:---------------------
敬礼!

解决方案 »

  1.   

    irre.setAttribute("onclick","alert('hello world');"); 无效用addEventListener方法
      

  2.   

    irre.setAttribute("onchange","Irrelevant(this);"); 
    irre.setAttribute("onclick","alert('hello world');"); 
    irre.setAttribute("onselect","alert(this.value);"); 换个写法吧..
    irre.onclick = function(){alert('hello world');};
    irre.onchange = function(){Irrelevant(this)};
    irre.onselect = function(){alert(this.value)};
      

  3.   

    换写法
    irre.setAttribute("onclick","alert('hello world');"); 在ff下有效 但是IE下无效的
    irre.setAttribute("onclick",function(){alert('hello world');});在IE下有效 但是FF下又是无效的
      

  4.   

    good
    很感谢上面的解答 : )