[JavaScript]æ™戡–“å184;墽墽墽
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[JavaScript]æ™戡–“å184;墽墽墽相关的知识,希望对你有一定的参考价值。
時間帯ã«ã‚ˆã£ã¦ã€CSSを切り替ãˆã‚‹ã€‚
<SCRIPT LANGUAGE="javascript"> <!-- Begin function getCSS() { datetoday = new Date(); timenow=datetoday.getTime(); datetoday.setTime(timenow); thehour = datetoday.getHours(); if (thehour > 20) display = "tree_twilight.css"; else if (thehour > 17) display = "tree_sunset.css"; else if (thehour > 14) display = "tree_afternoon.css"; else if (thehour > 11) display = "tree_noon.css"; else if (thehour > 7) display = "tree_morning.css"; else if (thehour > 4) display = "tree_sunrise.css"; else if (thehour > 1) display = "tree_twilight.css"; else display = "tree_sunset.css"; var css = '<'; css+='link rel="stylesheet" href=' + display + ' /'; css+='>'; document.write(css); // End --> } </script> <script language="javascript">getCSS();</script>
以上是关于[JavaScript]æ™戡–“å184;墽墽墽的主要内容,如果未能解决你的问题,请参考以下文章