<div class="codetitle"> <span><a style="CURSOR: pointer" data="4473" class="copybut" id="copybut4473" onclick="doCopy('code4473')"><u>复제대码</u></a></span> 代码如下:</div> <div class="codebody" id="code4473"> <br><script type="text/javascript" 언어="javascript" > <br>var _sn = ["df/common", "df/home2010"]; <br>var _su = "http://www.jb51.net/skin/"; <br>var Swidth = screen.width; var _se, _st; <br>for (i in _sn) { <br>_se = document.createElement("link"); <br>_se.type = "텍스트/css"; <br>_se.rel = "스타일시트"; <br>if (Swidth >= 1280) { <br>_st = _su _sn[i] ".w.css"; <br>} else { <br>_st = _su _sn[i] ".css"; <br>} <br>_se.href = _st; <br>document.getElementsByTagName("head")[0].appendChild(_se); <br>} <br></script><br> </div>