<div class="codetitle"> <span><a style="CURSOR: pointer" data="60735" class="copybut" id="copybut60735" onclick="doCopy('code60735')"><u>複製程式碼</u></a></span>程式碼如下:</div> <div class="codebody" id="code60735"> <br><script type="text/javascript"> <BR>函數函數tttt1 (){ <BR>alert('tt1') ; <BR>} <BR>函數tt2(){ <BR>alert('tt2') ; <BR>} <BR>函數tt3(){ <BR> alert('tt3') ; <BR>} <BR>function addLoadEvent(func) { <BR>var oldonload = window.onload; <BR>if (typeof window.onload != 'function') { <BR>window🎜>window .onload = func; <BR>} else { <BR>window.onload = function() { <BR>oldonload(); <BR>func(); <BR>} <BR>} <BR>} <BR>} <BR>} <BR>} <BR>} <BR>} </script> </div>} } } } } } } } addLoadEvent(tt1()) ; addLoadEvent(tt2()) ; addLoadEvent(tt3()) ; 腳本>