javascript的一些简单案例效果直接写在网页就能看见

上传人:xins****2008 文档编号:116592079 上传时间:2019-11-16 格式:DOC 页数:10 大小:37KB
返回 下载 相关 举报
javascript的一些简单案例效果直接写在网页就能看见_第1页
第1页 / 共10页
javascript的一些简单案例效果直接写在网页就能看见_第2页
第2页 / 共10页
javascript的一些简单案例效果直接写在网页就能看见_第3页
第3页 / 共10页
javascript的一些简单案例效果直接写在网页就能看见_第4页
第4页 / 共10页
javascript的一些简单案例效果直接写在网页就能看见_第5页
第5页 / 共10页
点击查看更多>>
资源描述

《javascript的一些简单案例效果直接写在网页就能看见》由会员分享,可在线阅读,更多相关《javascript的一些简单案例效果直接写在网页就能看见(10页珍藏版)》请在金锄头文库上搜索。

1、计算你的出生日在星期几。有时间有点意思2)nSwitch=1varnDayOfWeek=cala_weekday(nMonth,nDay,nYear)if(nSwitch)nDayOfWeek+nSwitch=0day_display(form,nDayOfWeek)functioncala_weekday(x_nMonth,x_nDay,x_nYear)if(x_nMonth=3)x_nMonth-=2elsex_nMonth+=10if(x_nMonth=11)|(x_nMonth=12)x_nYear-varnCentNum=parseInt(x_nYear/100)varnDYearN

2、um=x_nYear%100varnPart1=parseInt(2.6*x_nMonth-.2)varnZeller=(parseInt(nPart1+x_nDay+nDYearNum+(nDYearNum/4)+(nCentNum/4)-2*nCentNum)%7if(nZellerJavaFILEbodyBGCOLOR=#fffffflink=#CC0033vlink=#333399alink=#FF0000Everwonderwhatdayyouwerebornon?Well,youcanfindoutwiththisneatlittlescript.Simplytypeyourbithdateinthealgorithingiebelow,anditwilltellya.honest!Author:MichaelGudaitisDownloadtheScriptTousethisalgorithm,inputyourdateofbirth(MM/DD/YYYY),pressokandthenboomthedayoftheweekinwhichyouwerebornonappears.ZellersAlgorithmMonth:Day:Year:Example:11-1-1970SundayYourwerebornona/table

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 大杂烩/其它

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号