Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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;


Ïà¹ØÎĵµ£º

JavaScript ÖеÄ==ºÍ===

ÔÚjsÖУ¬Éϴο´µ½Ò»¶Î´úÂë===ÅжÏʹÓÃ3¸ö=ºÅ
ÎÒÄÉÃÆÁË Ò»ÔËÐÐ Õý³£µÄ¡£
ÓÚÊÇν֮Ի£º“ÉñÂë”
ºó²éÔĵÃÖª
==Ö»ÊÇÅжÏÖµÊÇ·ñÏàµÈ
===ÅжÏÖµºÍÀàÐÍÊÇ·ñ¶¼ÏàµÈ
±ÈÈç
var key="222";
var key2=222;
alert(key==key2)//ture
alert(key===key2)//false
²»ÖªµÀÆäËûµÄÈõÀàÐÍÊÇ·ñ¶¼ÊÇÒ»Ñù¡£ ......

JavaScript£¬µÈ±ÈÀýËõ·ÅͼƬµÄº¯Êý

    ÔÚWebÉÏÏÔʾͼƬ£¬Í¨³£¶¼»áÓÐͼƬÏÔʾ±ÈÀýÎÊÌ⣬Èç¹û²»¸ø<img />ÏÞÖÆwidthºÍheight£¬ÄÇôÈç¹ûͼƬ´óÁ˾ͻὫÕû¸öÒ³Ãæ¼·ÂÒ£¬Í¼Æ¬Ð¡ÁËÓÖ»áʹͼƬʧÕæ¡£
    ÎÒµÄÐèÇóÈçÏ£º
        1¡¢Ô¤Ïȶ¨ÒåºÃͼƬÏÔʾµÄ±ê×¼¿í¶ÈºÍ¸ß¶È¡£
  &nb ......

javascript´ò¿ªÑ¡Ôñ¶Ô»°¿ò/±£´æ¶Ô»°¿ò

¡¾ÒýÓõØÖ·¡¿http://hi.baidu.com/rayshow/blog/item/9102258daac46810b31bbad3.html
ÔÚä¯ÀÀÆ÷ÖÐËäÈ»´ò¿ªÑ¡Ôñ¶Ô»°¿òºÍ±£´æÎļþ¶Ô»°¿òµÄ¹¦Äܲ¢²»³£Ê¹Ó㬵«ÓÐʱÈÔÈ»»áÓõÃÉÏ£¬±ÈÈçÒ»¸öweb°æµÄ²¥·ÅÆ÷£¬ÈÃÓû§Ñ¡Ôñ±¾µØµÄÊÓƵ»òÒôƵÎļþµÈ¡£¶ÔÓÚ´ò¿ªÑ¡ÔñÎļþ¶Ô»°¿òÀ´Ëµ£¬Ïà¶Ô±È½Ï¼òµ¥£¬Ö»ÐèÒªÔÚÒ³ÃæÄÚ·ÅÒ»¸öfile±êÇ©£¬¿ÉÒÔ½«Æä ......

Javascript ÖÐ ShowModalDialog µÄʹÓ÷½·¨

ShowModalDialogº¯ÊýµÄ¹¦ÄÜ£º
´ò¿ªÒ»¸ö×Ó´°¿Ú£¬²¢ÇÒ¿ÉÓ븸´°¿ÚÏ໥´«µÝÊý¾Ý£¬ËüÓëwindow.openµÄ×î´óÇø±ð¾ÍÔÚÓÚÓÉShowModalDialog´ò¿ª×Ó´°¿Úºó£¬¸¸´°¿Ú½«²»ÄܲÙ×÷¡£
ʹÓ÷½·¨£º
vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])
²ÎÊý˵Ã÷£º
sURL
±ØÑ¡²ÎÊý£¬ÀàÐÍ£º×Ö·û´®¡£ÓÃÀ´Ö¸¶¨¶Ô»°¿òÒªÏ ......

JavaScriptÑéÖ¤º¯Êý´óÈ«

1. ³¤¶ÈÏÞÖÆ
<script>
function test()
{
if(document.a.b.value.length>50)
{
alert("²»Äܳ¬¹ý50¸ö×Ö·û£¡");
document.a.b.focus();
return false;
}
}
</script>
<form name=a onsubmit="return test()">
<textarea name="b" cols="40" wrap="VIRTUAL" rows="6"></textarea& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ