A tool for packaging images, fonts, sounds, binary data to swf or swc library Swift is a tool for packaging images, fonts, sounds, binary data to swf as runtime shared library or swc as precompiled library. You can load and access these resources at
代码如下: function addEvent (o,c,h){ if(o.attachEvent){ o.attachEvent(‘on’+c,h); }else{ o.addEventListener(c,h,false); } return true;} var selectRow;//页面级js变量,用来存被选中的行,好在弹出窗口中对该行赋值 function addnode() { var table=document.getElementById(“Dy_table”); var t
两种方式:直接给对象添加事件,节点添加事件 例如给一个id为tab1的添加onclick事件 第一种情况: 代码如下: var t = document.getElementById(“tab1”); t.onclick = function tst(){ alert(”); } 第二种情况 代码如下: var tb = document.getElementById(“tab1”); if(window.addEventListener){ // Mozilla, Netscape, F