设为首页
加入收藏
帮助中心
首页 | 红盾通告 | 信息中心 | ASP技术 | 数据库 | 网页设计 | 网管专栏 | OICQ攻略 | 墨客频道 | 网站运营 |
当前位置:首页 >> 网页设计 >> Javascript >> 正文
最新信息
·Javascript处理数字的几个…
·判断当前网页是否为本站页…
·鼠标指上图片替换后出现下…
·逍遥狼无图片智能圆角
·javascript获取当前网页文…
·用javascript获得地址栏参…
·JavaScript常用判断函数
·双击鼠标滚动屏幕的代码
·web应用漏洞扫描工具Jikto…
·常备JS操作
资料搜索
热点信息
·js获取图片尺寸
·怎么让弹出窗口最大化
·web应用漏洞扫描工具Jikto…
·判断radio多个单选按纽中是…
·如何用文字做一个只刷新验…
·防止F5刷新执行onunload事…
·Javascript获取IE浏览器窗…
·关闭IE时调用onbeforeunlo…
·js表单提交验证
·javascript获取当前网页文…
推荐信息
·显示日期方式
·添加到收藏夹
·终极应用--弹出的窗口之Co…
·防止被人frame
·web应用漏洞扫描工具Jikto…
·JavaScript常用的一些验证…
·关闭IE时调用onbeforeunlo…
·js表单提交验证
·自己综合其他资料写的一套…
·window.open具体参数


Google
 
根据一个月每一天的不同播放不同的背景音乐,你要事先设置好
〖编辑:Cloudy | 浏览:人次〗

脚本说明:
把如下代码加入<head>区域中
<table border=5 bordercolor=blue borderlight=green>
<tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>跟据日期能听到不同的音乐!</strong></font></td></tr><tr><td align=center><SCRIPT language="JavaScript">
<!--
page=new Date();
if (page.getDate() == 1)
document.write("<bgsound src=song1.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 2)
document.write("<bgsound src=song2.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 3)
document.write("<bgsound src=song3.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 4)
document.write("<bgsound src=song4.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 5)
document.write("<bgsound src=song5.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 6)
document.write("<bgsound src=song6.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 7)
document.write("<bgsound src=song7.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 8)
document.write("<bgsound src=song8.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 9)
document.write("<bgsound src=song9.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 10)
document.write("<bgsound src=song10.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 11)
document.write("<bgsound src=song1.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 12)
document.write("<bgsound src=song2.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 13)
document.write("<bgsound src=song3.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 14)
document.write("<bgsound src=song4.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 15)
document.write("<bgsound src=song5.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 16)
document.write("<bgsound src=song6.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 17)
document.write("<bgsound src=song7.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 18)
document.write("<bgsound src=song8.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 19)
document.write("<bgsound src=song9.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 20)
document.write("<bgsound src=song10.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 21)
document.write("<bgsound src=song1.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 22)
document.write("<bgsound src=song2.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 23)
document.write("<bgsound src=song3.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 24)
document.write("<bgsound src=song4.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 25)
document.write("<bgsound src=song5.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 26)
document.write("<bgsound src=song6.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 27)
document.write("<bgsound src=song7.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 28)
document.write("<bgsound src=song8.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 29)
document.write("<bgsound src=song9.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 30)
document.write("<bgsound src=song10.mid width=145 height=30 autostart=true loop=-1 volume=50>");

if (page.getDate() == 31)
document.write("<bgsound src=song1.mid width=145 height=30 autostart=true loop=-1 volume=50>");
page=new Date();
var months = new Array(13);
months[1] = "1月";
months[2] = "2月";
months[3] = "3月";
months[4] = "4月";
months[5] = "5月";
months[6] = "6月";
months[7] = "7月";
months[8] = "8月";
months[9] = "9月";
months[10] = "10月";
months[11] = "11月";
months[12] = "12月";

var dateObj = new Date()
var lmonth = months[dateObj.getMonth() + 1]
var date = dateObj.getDate()

document.write("<br>" +"今天是:"+ lmonth + date+"日"+"播放007主题曲")

//-->


</SCRIPT></td></tr>
</table>

 


录入时间:2006-06-20 11:52:44 [打印本页] [关闭窗口] [返回顶部]
特别声明: 本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。

Copyright © 2006-2014 0733168.Com Inc All Rights Reserved
关于我们 | 广告合作 | 联系我们 | 法律声明 | 友情链接 | 意见反馈
本站所收录信息、社区话题、及本站所做之广告均属其个人行为,与本站立场无关
湘ICP备06008436号