<div class="codetitle"> <span><a style="CURSOR: pointer" data="51604" class="copybut" id="copybut51604" onclick="doCopy('code51604')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code51604"> <br>document.write('<scr src="http://a.com/b.js" type="text/javascript"></scr>'+'ipt>'); <br> </div> <br><br>直到被杀毒软件提示有恶意代码才发现这也是不安全的,汗…… <br><br>那就只好改成这样了: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="43318" class="copybut" id="copybut43318" onclick="doCopy('code43318')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code43318"> <br>(function() { <br>var s = document.createElement('script'); <br>s.type = 'text/javascript'; <br>s.src = 'http://a.com.cn/b.js'; <br>document.getElementsByTagName('head')[0].appendChild(s); <br>})(); <br> </div>