远程查男朋友微信聊天记录app_监听老婆手机微信软件

本文实例讲述了JavaScript每天定时更换皮肤样式的方法。 分享给大家供大家参考。 具体分析如下:  这段js代码通过每天在不同时段自动更换网页调用的样式表,实现更换皮肤的功能。   ?123456...

本文实例讲述了JavaScript每天定时更换皮肤样式的方法。

分享给大家供大家参考。

具体分析如下:  这段js代码通过每天在不同时段自动更换网页调用的样式表,实现更换皮肤的功能。

  ?1234567891011121314151617181920212223242526script type=text/JavaScript!--function getStylesheet() {var currentTime = new Date().getHours();if (0 = currentTimetTime 5) {document.write(link rel=stylesheet href=night.css type=text/css);}if (5 = currentTimetTime 11) {document.write(link rel=stylesheet href=morning.css type=text/css);}if (11 = currentTimetTime 16) {document.write(link rel=stylesheet href=day.css type=text/css);}if (16 = currentTimetTime 22) {document.write(link rel=stylesheet href=evening.css type=text/css);}if (22 = currentTimetTime = 24) {document.write(link rel=stylesheet href=night.css type=text/css);}}getStylesheet();--/scriptnoscriptlink href=main.css rel=stylesheet type=text/css/noscript  希望本文所述对大家的javascript程序设计有所帮助。

  • 发表于 2021-04-22 18:20
  • 阅读 ( 245 )
  • 分类:互联网

0 条评论

请先 登录 后评论
徐永华
徐永华

728 篇文章

你可能感兴趣的文章

相关问题