<!DOCTYPEhtmlPUBLIC
//W
C//DTDXHTML
Transitional//EN
>
<htmlxmlns=>
<head>
<metahttpequiv=ContentTypecontent=text/html;charset=gb/>
<title></title>
</head>
<STYLE>
BODY{
SCROLLBARFACECOLOR:#EFFE;
SCROLLBARHIGHLIGHTCOLOR:#AACE;
SCROLLBARSHADOWCOLOR:#fcfcfc;
SCROLLBARDLIGHTCOLOR:#fcfcfc;
SCROLLBARARROWCOLOR:#;
SCROLLBARTRACKCOLOR:#fcfcfc;
SCROLLBARDARKSHADOWCOLOR:#AACE;
SCROLLBARBASECOLOR:#fcfcfc
}
</STYLE>
<script>
functionclick(e){
if(documentall){
if(eventbutton==||eventbutton==||eventbutton==){
oncontextmenu=returnfalse;
}
}
if(documentlayers){
if(ewhich==){
oncontextmenu=returnfalse;
}
}
}
if(documentlayers){
documentcaptureEvents(EventMOUSEDOWN);
}
documentonmousedown=click;
documentoncontextmenu=newFunction(returnfalse;)
vartravel=true
varhotkey=/*hotkey即为热键的键值是ASII码这里代表c键*/
if(documentlayers)
documentcaptureEvents(EventKEYDOWN)
functiongogo(e)
{if(documentlayers){
if(ewhich==hotkey&&travel){
//alert(操作错误或许是您按错了按键!);
}}
elseif(documentall){
if(eventkeyCode==hotkey&&travel){
//alert(操作错误或许是您按错了按键!);
}}
}
documentonkeydown=gogo
</script>
<linkid=csstype=text/cssrel=stylesheet>
<scriptsrc=commonjslanguage=javascripttype=text/javascript></script>
<divstyle=marginleft:px;>欢迎光临网页脚本特效中心点击运行按钮演示特效<br/>
<br/><TEXTAREAid=tempclass=htmlarea><html>
<title>网页特效代码|JsCodeCN|全选并复制表单中内容</title>
<head>
<style>
highlighttext{
backgroundcolor:yellow;
fontweight:bold;
}
</style>
</head>
<formname=test>
<inputtype=buttonvalue=全选并复制onclick=javascript:HighlightAll(testselect)>
<textareaname=selectrows=cols=>你好欢迎光临网页特效观止;textarea>
</form>
<scriptlanguage=Javascript>
<!
varcopytoclip=
functionHighlightAll(theField){
vartempval=eval(document+theField)
tempvalfocus()
tempvalselect()
if(documentall&©toclip==){
therange=tempvalcreateTextRange()
therangeexecCommand(Copy)
windowstatus=Contentshighlightedandcopiedtoclipboard!
setTimeout(windowstatus=)
}
}
//>
</script>
</head>
</html>
<a>欢迎访问网页特效集</a></TEXTAREA><br/><INPUTonclick=runEx(temp)type=buttonvalue=运行class=submit/><INPUTonclick=doCopy(temp)type=buttonvalue=复制class=submit/><INPUTonclick=doSave(temp)type=buttonvalue=保存class=submit/><inputtype=buttononclick=parentwindowneatDialogclose()class=submitvalue=关闭/><spanclass=fontgray>[提示Ctrl+A全部选择可先修改部分代码后运行]</span></div>
<body>
</body>
</html>
打包文件下载