JavaScriptʼþ´óÈ«3
//ÎÞģʽµÄÌáʾ¿ò
//ÆÁ±Î°´¼ü
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<noscript><meta http-equiv="refresh" content="0;url=about:noscript"></noscript>
<title>ÆÁ±ÎÊó±êÓÒ¼ü¡¢Ctrl+N¡¢Shift+F10¡¢Alt+F4¡¢F11¡¢F5ˢС¢Í˸ñ¼ü</title>
</head>
<body>
<script language="Javascript"><!--
//ÆÁ±ÎÊó±êÓÒ¼ü¡¢Ctrl+N¡¢Shift+F10¡¢F11¡¢F5ˢС¢Í˸ñ¼ü
//Author: meizz(÷»¨Óê) 2002-6-18
function document.oncontextmenu(){event.returnValue=false;}//ÆÁ±ÎÊó±êÓÒ¼ü
function window.onhelp(){return false} //ÆÁ±ÎF1°ïÖú
function document.onkeydown()
{
if ((window.event.altKey)&&
((window.event.keyCode==37)|| //ÆÁ±Î Alt+ ·½Ïò¼ü ←
(window.event.keyCode==39))) //ÆÁ±Î Alt+ ·½Ïò¼ü →
{
alert("²»×¼ÄãʹÓÃALT+·½Ïò¼üÇ°½ø»òºóÍËÍøÒ³£¡");
event.returnValue=false;
}
/* ×¢£ºÕ⻹²»ÊÇÕæÕýµØÆÁ±Î Alt+ ·½Ïò¼ü£¬
ÒòΪ Alt+ ·½Ïò¼üµ¯³ö¾¯¸æ¿òʱ£¬°´×¡ Alt ¼ü²»·Å£¬
ÓÃÊó±êµãµô¾¯¸æ¿ò£¬ÕâÖÖÆÁ±Î·½·¨¾ÍʧЧÁË¡£ÒÔºóÈô
ÓÐÄÄλ¸ßÊÖÓÐÕæÕýÆÁ±Î Alt ¼üµÄ·½·¨£¬Çë¸æÖª¡£*/
if ((event.keyCode==8) || //ÆÁ±ÎÍ˸ñɾ³ý¼ü
(event.keyCode==116)|| //ÆÁ±Î F5 ˢмü
(event.ctrlKey && event.keyCode==82)){ //Ctrl + R
event.keyCode=0;
event.returnValue=false;
Ïà¹ØÎĵµ£º
eclipseÖÐjavascriptÏÔʾΪÂÒÂëµÄ½â¾ö°ì·¨¡£
Òà¿ÉÒÀ´ÎÑ¡Ôñ²Ëµ¥"window">>"preferences">>"general">>"content types"
ÔÚÓұߵĴ°¿ÚÖдò¿ªÁбí,Ñ¡ÖÐ"JavaScript",ÔÚÏÂÃæµÄ"default encoding"ÓұߵÄÊäÈë¿òÖÐÊäÈëjavaScript±àÂ룬Ҫ¿´ÄúµÄÍøÒ³ÓõıàÂ룬Èç¹ûÊÇ“GBK”¾ÍÑ¡"GBK",ÊÇ"GB2312"¾ ......
×î½ü×öÒ»¸ö¹«Ë¾µÄÒµÎñϵͳ£¬¹«Ë¾ÒªÇóÄܾ¡¿ÉÄܵÄÓëc/s½üËÆ£¬Ò²¾ÍÊÇÈçc/sÒ»Ñù£¬µã»÷Îı¾¿ò¿ÉÒÔµ¯³ö´ËÏîÄ¿µÄÏà¹ØÄÚÈÝ£¬½øÐÐÑ¡ÔñÊäÈë¡£
ÎÒʹÓÃÁ˵¯³ö´°¿Ú£¬È»ºóÔÚ×Ó´°¿ÚË«»÷Ñ¡ÖÐÏîÄ¿£¬°ÑÑ¡ÖеÄÖµ·µ»Ø¸ø¸¸´°Ìå¡£
ÔÚϵͳ×öÍêÁËÖ®ºó£¬ÔÚ¿Í»§Ê¹ÓõĹý³Ì£¬ÓÉÓÚ¿Í»§Ê¹ÓõÄÊÇ512m ......
CDATA ÄÚ²¿µÄËùÓж«Î÷¶¼»á±»½âÎöÆ÷ºöÂÔ¡£
¼ÙÈçÎı¾Öаüº¬ÁË´óÁ¿µÄ "<" ºÍ "&" ×Ö·û - ¾ÍÏñ±à³Ì´úÂëÖо³£³öÏÖµÄÇé¿öÒ»Ñù - ÄÇôÕâ¸ö XML ÔªËؾͿÉÒÔ±»¶¨ÒåΪһ¸ö CDATA ²¿·Ö¡£
CDATA Çø¶Î¿ªÊ¼ÓÚ "<![CDATA["£¬½áÊøÓÚ "]]>"£º
<script type="text/javascript">
<![CDATA[
function compare(a,b)
......
·Çģ̬ˢи¸Ò³Ã棺window.opener.location.reload();
ģ̬ˢи¸Ò³Ã棺window.dialogArguments.location.reload();
ÏÈÀ´¿´Ò»¸ö¼òµ¥µÄÀý×Ó£º
ÏÂÃæÒÔÈý¸öÒ³Ãæ·Ö±ðÃüÃûΪframe.html¡¢top.html¡¢bottom.htmlΪÀýÀ´¾ßÌå˵Ã÷ÈçºÎ×ö¡£
frame.html ÓÉÉÏ(top.html)ÏÂ(bo ......