<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" language="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>