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

40¸ö³£ÓÃÍøÕ¾javascript½Å±¾

1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡ÏûÑ¡È¡¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" oncut="return false;" ·ÀÖ¹¸´ÖÆ
5. <link rel="Shortcut Icon" href="favicon.ico"> IEµØÖ·À¸Ç°»»³É×Ô¼ºµÄͼ±ê
6. <link rel="Bookmark" href="favicon.ico"> ¿ÉÒÔÔÚÊղؼÐÖÐÏÔʾ³öÄãµÄͼ±ê
7. <input style="ime-mode:disabled"> ¹Ø±ÕÊäÈë·¨
8. ÓÀÔ¶¶¼»á´ø×Å¿ò¼Ü
<script language="JavaScript"><!--
if (window == top)top.location.href = "frames.htm"; //frames.htmΪ¿ò¼ÜÍøÒ³
// --></script>
9. ·ÀÖ¹±»ÈËframe
<SCRIPT LANGUAGE=JAVASCRIPT><!--
if (top.location != self.location)top.location=self.location;
// --></SCRIPT>
10. ÍøÒ³½«²»Äܱ»Áí´æΪ
<noscript><iframe src="/blog/*.html>";</iframe></noscript>
11. <input type=button value=²é¿´ÍøÒ³Ô´´úÂë
onclick="window.location = "view-source:"+ "http://www.williamlong.info"">
12.ɾ³ýʱȷÈÏ
<a href="javascript:if(confirm("ȷʵҪɾ³ýÂð?"))location="boos.asp?&areyou=ɾ³ý&page=1"">ɾ³ý</a>
13. È¡µÃ¿Ø¼þµÄ¾ø¶ÔλÖÃ
//Javascript
<script language="Javascript">
function getIE(e){
var t=e.offsetTop;
var l=e.offsetLeft;
while(e=e.offsetParent)
alert("top="+t+"/nleft="+l);
}
</script>
//VBScript
<script language="VBScript"><!--
function getIE()
dim t,l,a,b
set a=document.all.img1
t=document.all.img1.offsetTop
l=document.all.img1.offsetLeft
while a.tagName<>"BODY"
set a = a.offsetParent
t=t+a.offsetTop
l=l+a.offsetLeft
wend
msgbox "top="&t&chr(13)&"left="&l,64,"µÃµ½¿Ø¼þµÄλÖÃ"
end function
--></script>
14. ¹â±êÊÇÍ£ÔÚÎı¾¿òÎÄ×ÖµÄ×îºó
<script language="javascript">
function cc()
{
var e = event.srcElement;
var r =e.createTextRange();
r.moveStart("character",e.value.length);
r.co


Ïà¹ØÎĵµ£º

javaScript Êý×é

 1¡¢Êý×éµÄ´´½¨
var arrayObj = new Array();¡¡//´´½¨Ò»¸öÊý×é
var arrayObj = new Array([size]);¡¡//´´½¨Ò»¸öÊý×é²¢Ö¸¶¨³¤¶È£¬×¢Òâ²»ÊÇÉÏÏÞ£¬Êdz¤¶È
var arrayObj = new Array([element0[, element1[, ...[, elementN]]]]);¡¡´´½¨Ò»¸öÊý×é²¢¸³Öµ
Ҫ˵Ã÷µÄÊÇ£¬ËäÈ»µÚ¶þÖÖ·½·¨´´½¨Êý×éÖ¸¶¨Á˳¤¶È£¬µ«Êµ¼ÊÉÏËùÓ ......

JavaScript deleteÔËËã·û

      ΪÁËʵÏÖcheckbox¶àÑ¡ÑéÖ¤£¬Ê¹ÓÃjquery.validate £¬ ÎÞ·¨ÊµÏÖ×Ô¶¨Òå´íÎóÐÅÏ¢¡£ÉÏÎçLinchun´ø×ÅÎÒÒ»¿é¶ù¿´jquery.validate.js µÄÔ´´úÂ룬·¢ÏÖÓÅÐãµÄ´úÂëÕæµÄÊǶÔJavaScriptÓõį»ð´¿Çà~ :)
delete ÔËËã·û£º
ÊÇECMAScriptÒ»ÔªÔËËã·û¡£Ò»ÔªÔËËã·ûÖ»ÓÐÒ»¸ö²ÎÊý£¬¼´Òª²Ù×÷µÄ¶ÔÏó»òÖµ¡£ËüÃÇÊÇ ......

javascriptʵÏÖÈÕÀú¹¦ÄÜ

»ÆÉ«²¿·ÖΪdate.js
<script type="text/javascript" src="/js/date.js"></script>
<input name="date" type="text" id="date" onBlur="checkDay(this)" style="width:160px;" /><INPUT class="button" style="WIDTH: 64px; HEIGHT: 24px" onClick="setday(this,date)"type="button" value="Ñ¡ÔñÈÕÆÚ ......

javascriptÃæÏò¶ÔÏó±à³Ì

·â×°£ºÍ¨¹ý±Õ°ü²ÅËãµÄÉÏÊÇÕæÕýÒâÒåÉϵķâ×°
<script type="text/javascript">
  function myInfo(){
    var name ="ÀÏÓã",age =27;
    var myInfo = "my name is" + name + "i am" + age  ......

JavaScriptÔËËã·ûÏê½â

       1¡¢javascript¾ßÓÐÏÂÁÐÖÖÀàµÄÔËËã·û£ºËãÊõÔËËã·û;µÈͬÔËËã·ûÓëȫͬÔËËã·û;±È½ÏÔËËã·û;
¡¡¡¡2¡¢Ä¿µÄ·ÖÀࣺ×Ö·û´®ÔËËã·û;Âß¼­ÔËËã·û;ÖðλÔËËã·û;¸³ÖµÔËËã·û;
¡¡¡¡3¡¢ÌØÊâÔËËã·û£ºÌõ¼þÔËËã·û;typeofÔËËã·û;´´½¨¶ÔÏóÔËËã·ûnew;deleteÔËËã·û;voidÔËËã·ûºÅ;¶ººÅÔËËã·û;
¡¡¡¡ËãÊõÔËËã·û£º ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ