Posted in Javascript onJuly 29, 2010
<script type="text/javascript" language="javascript"> var _sn = ["df/common", "df/home2010"]; var _su = "https://3water.com/skin/"; var Swidth = screen.width; var _se, _st; for (i in _sn) { _se = document.createElement("link"); _se.type = "text/css"; _se.rel = "stylesheet"; if (Swidth >= 1280) { _st = _su + _sn[i] + ".w.css"; } else { _st = _su + _sn[i] + ".css"; } _se.href = _st; document.getElementsByTagName("head")[0].appendChild(_se); } </script>
动态调用CSS文件的JS代码
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@