Alixixi runcode.asp Code good application _javascript tips

Source: Internet
Author: User
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title></title>


<STYLE>
Body {
Scrollbar-face-color: #E8F5FE;
Scrollbar-highlight-color: #AAC7E9;
Scrollbar-shadow-color: #fcfcfc;
Scrollbar-3dlight-color: #fcfcfc;
Scrollbar-arrow-color: #240024;
Scrollbar-track-color: #fcfcfc;
Scrollbar-darkshadow-color: #AAC7E9;
Scrollbar-base-color: #fcfcfc
}
</STYLE>
<script>
function Click (e) {
if (document.all) {
if (event.button==1| | event.button==2| | event.button==3) {
Oncontextmenu= ' return false ';
}
}
if (document.layers) {
if (E.which = = 3) {
Oncontextmenu= ' return false ';
}
}
}
if (document.layers) {
Document.captureevents (Event.mousedown);
}
Document.onmousedown=click;
Document.oncontextmenu = new Function ("return false;")

var travel=true
var hotkey=17/* Hotkey is the key value of the hotkey, is the ASII code, here 99 represents the C key * *
if (document.layers)
Document.captureevents (Event.keydown)
function Gogo (e)
{if (document.layers) {
if (e.which==hotkey&&travel) {
Alert ("The operation is wrong. Maybe you pressed the wrong button!");
} }
else if (document.all) {
if (event.keycode==hotkey&&travel) {
Alert ("The operation is wrong. Maybe you pressed the wrong button!");
}}
}

Document.onkeydown=gogo
</script>
<link id= "CSS" href= "style1.css" type= "Text/css" rel= "stylesheet" >
<script src= "Common.js" language= "JavaScript" type= "Text/javascript" ></script>
<div style= "MARGIN-LEFT:8PX;" > Welcome to Cloud Habitat Community web Scripting Effects Center, click the Run button to demonstrate special effects:<br/>
&LT;BR/><textarea id= "temp57711" class= "Htmlarea" >
<title> website Special Effects code | jscode.cn|---Select all and copy the contents of the form </title>

<style>
. highlighttext{
Background-color:yellow;
Font-weight:bold;
}
</style>


<form name=test>
<input type= "button" value= "Select All and Copy" onclick= "Javascript:highlightall (' Test.select1 ')" >

<textarea name= "Select1" rows=3 cols=46 > Hello, Welcome to the Web page special effects Ningbo
</form>
<script language= "Javascript" >
<!--

var copytoclip=1

function Highlightall (Thefield) {
var tempval=eval ("document.") +thefield)
Tempval.focus ()
Tempval.select ()
if (document.all && copytoclip==1) {
Therange=tempval.createtextrange ()
Therange.execcommand ("Copy")
Window.status= "Contents highlighted and copied to clipboard!"
settimeout ("window.status=", 1800)
}
}
-->
</script>


<a href= "http://www.jb51.net/" > Welcome to Cloud-dwelling Community web page special effects set </a></textarea><br/><input onclick= "RunEx (' temp57711 ') "type=" button "value=" Run "class=" Submit1 "/> <input onclick=" docopy (temp57711) "" Type= "button" value= "Copy" class= "Submit1"/> <input onclick= "Dosave (temp57711)" type= "button" value= "Save" class= "Submit1"/> & Lt;input Type=button onclick= "Parent.window.neatDialog.close ()" Class=submit1 value= "close/> <span class=" Fontgray12 "> [Hint: Ctrl + A All selected, you can modify some of the code before running]</span></div>
<body>
</body>

Package file Download

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.