- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
常用的js(Commonly used JS)
常用的js(Commonly used JS)
Commonly used JavaScript code
Commonly used JS code
Welcome to add ^_^
1. keep the text rolling
MARQUEE scroll text /MARQUEE
2. record and display the last modification time of the page
script language=javascript
Document.write (last update time: + document.lastModified +)
/script
3. closes the current window
A, href=/onClick=javascript:window.close (); return false; closes the window /a
Close the current page after 4.5 seconds
script language=javascript
! --
SetTimeout (window.close (); , 5000);
--
/script
Load the specified page after 5.2 seconds
head
meta, http-equiv=refresh, content=2; URL=http://, your web site
/head
6. add to Favorites
Script Language=javascript
Function, bookmarkit ()
{
Window.external.addFavorite (http:// your URL , your site name )
}
If (document.all) document.write ( a href=# onClick=bookmarkit () Add favorites /a )
/Script
7. let hyperlinks do not display underscores
style type=text/css
- !
A:link{text-decoration:none}
A:hover{text-decoration:none}
A:visited{text-decoration:none}
-
/style
8., prohibit the right mouse button action
Script = Language = javascript
Function click () {if (event.button==2||event.button==3)
{
Alert (right mouse button);
}
Document.onmousedown=click / / --
/Script
9. set the page to the home page
body, bgcolor=#FFFFFF, text=#000000
URL: http://, your website
A, class=chlnk, style=cursor:hand, HREF
OnClick=this.style.behavior=url (#default#homepage);
This.setHomePage (your website name); font color=000000 size=2 face= /font /a
/body
10. countdown to festivals
Script Language=javascript
Var timedate= new Date (December 252003);
Var times= christmas;
Var now = new, Date ();
Var date = timedate.getTime () - now.getTime ();
Var time = Math.floor (date / (1000 * 60 * 60 * 24));
If (time = 0)
Document.write (now from +times+ and +time + day) /Script
11. click the button to print the current page
Script Language=javascript
- B
您可能关注的文档
- 《象棋初学门径》(刘殿中编著)(Chess (edited by Liu Dianzhong) to beginners).doc
- 《财政法规》30个常考知识点(Financial laws and regulations 30 often test knowledge points).doc
- 《费孝通 乡土中国》系维着私人的道德(Fei Xiaotong's native China is based on personal morality).doc
- 《过山车大亨3》详细攻略三(Rollercoaster Tycoon 3 detailed walkthrough three).doc
- 《那些年,我们一起追过的女孩》观后感(In those years, we were chasing the girl.).doc
- 《送东阳马生序》原文及翻译(The original text and translation of Dongyang Ma Sheng Ji).doc
- 《邮差》的朴素魅力(The simple charm of the postman).doc
- 《软硬冰淇淋制作方法》(Method of making soft and hard ice cream).doc
- 《管理学》第五阶段在线作业(自测)(Management in the fifth stage of online homework (self-test)).doc
- 《金山画王 展示自我(三)——诗配画 》教案(Jinshan painting King show self (three) - poetry with painting lesson plan).doc
- 常用纸张分类(Common paper classification).doc
- 常用般务贸易用语速查(The commonly used service trade terms info).doc
- 常用香港和海外华人人名拼写对照表(A commonly used spelling list for Hongkong and overseas Chinese names).doc
- 常英杰在小学学科教学中如何渗透法制教育doc(3250k)(How does Chang Yingjie infiltrate legal education in the teaching of primary school doc (3250k)).doc
- 常见建筑砖砌体裂缝原因及其防治(Causes and prevention of cracks in common building brick masonry).doc
- 常见的windows开机自启动方法(Common windows boot self starting method).doc
- 常见的地质勘探技术(遥感地质调查、地质填图、坑探工程、钻探工程、巷探工程、地球物理勘探技术)(Common geological exploration techniques (remote sensing geological survey, geological mapping, pit exploration engineering, drilling engineering, roadway exp.doc
- 常见的增加白细胞的食物(Common foods that increase white blood cells).doc
- 常见的鱼缸问题(Common aquarium problems).doc
- 常见透明塑料的性能及注塑工艺(Properties of common transparent plastics and injection molding process).doc
最近下载
- 2024-2025学年四川省成都市第七中学高一(上)月考物理试卷(10月)(含答案).docx VIP
- 育婴员职业守则课件.pptx VIP
- 蔬菜生产技术课程标准.docx VIP
- 2025中考语文现代文阅读总复习-第1部分 专题12:记叙文阅读之主旨把握(讲义)(教师版).docx VIP
- 硅铁冶炼培训课件.pptx VIP
- 水土保持工程监理规划.pdf VIP
- 政务云平台 第4部分:系统部署和迁移要求_地方标准编制说明.pdf
- DB37T-政务云平台监管指标体系及编制说明.pdf VIP
- 高中物理必修二第一章检试测卷.doc VIP
- DB37T 4394.4—2024政务云平台 第4部分:系统部署和迁移要求.pdf VIP
文档评论(0)