- 1、本文档共29页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
制作网页的经典script代码(The classic script code for making web pages).doc
制作网页的经典script代码(The classic script code for making web pages)
The classic script code for making web pages
Author: unknown source: Chinese source station - the webmasters own source download station! Release time: 2006-7-29 9:35:27 [font: large, medium and small]
1, get the current web address
Response.Write script language=javascriptdocument.write (window.location.href); /script
Url=Request.CurrentExecutionFilePath.ToString ()
1, return to the previous page
a href=javascript:history.go (-1 target=_blank) return to the previous page /a
1, empty automatically
input name= homepage size= 30 maxlength= 100 class= editbox1 value= http:// onMouseOver= (this.focus) onMouseOut= if (this.value==) this.value=http://; onFocus= (this.select) onClick= if (this.value==http://) this.value= onblur= if (this.value==) this.value= search
1.encodes the speech so that it does not support the HTML syntax
Says = Server.HTMLEncode (says)
1. double click the page automatically scroll, click stop.
SCRIPT language=JavaScript
Var currentpos, timer;
Function initialize ()
{timer=setInterval (ScrollWindow ()), 16)}
Function SC () {
ClearInterval (timer);
}
Function ScrollWindow ()
{currentpos=document.body.scrollTop;
Window.scroll (0, ++currentpos);
If (currentpos = = document.body.scrollTop)
(SC);
}
Document.onmousedown=sc
Document.ondblclick=initialize
/script
1.script language=JavaScript
Document.write (last update time: + document.lastModified +)
/script
1. countdown to festivals
Script Language= JavaScript
Var timedate= new Date (October 12002);
Var times= National Day;
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 off +times+ and +time + heaven )
/Script
1. display system current date
script language=JavaScript
Today=new Date ();
Function date () {
This.length=date.arguments.length
For (VaR i=0; ithis.length; i++)
This[i+1]=date.arguments}
Var d=new date (Sunday, Monday, Tue
文档评论(0)