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

JavascriptÖÐ×î³£ÓõÄ55¸ö¾­µä¼¼ÇÉ(ת)

 
¶¼×ªÀÃÁË£¬²»¹ý»¹ÊÇÌùÉÏÀ´ÁË¡£²éµÄʱºò·½±ã¡£¡£¡£
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> <*** src="/*.html>"; </***> </noscript>
11. <input type=button value="/²é¿´ÍøÒ³Ô´´úÂë
onclick="window.location = "view-source:"+ "http://www.pconline.com.cn"">
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){
t+=e.offsetTop;
l+=e.offsetLeft;
}
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.tagNam


Ïà¹ØÎĵµ£º

JavaScript³£Óú¯ÊýÒÔ¼°Óï·¨

 .×Ö·û´®(String)
1.ÉùÃ÷
     var myString = new String("Every good boy does fine.");
     var myString = "Every good boy does fine.";
   2.×Ö·û´®Á¬½Ó
     var myString = "Every " + "goo ......

JavaScriptÈÕÆÚУÑé

 //ÓÉÒ³ÃæÔªËØdate_string(YYYY-MM_DD¸ñʽ)µÃµ½Êý×édate_array
 //ÊäÈë²ÎÊý£ºdate_string:ÈÕÆÚ´®£»marker:ÈÕÆÚ´®date_stringÀïµÄ·Ö¸ô·û£¬Èç¹ûûÓÐÔòΪ""£»
 //·µ»ØÖµ£º Êý×飺date_array
 //            Êý×éÔªËØdate_array.year=YYYY£»dat ......

javascript ʼþÁбí½â˵

 



javascript
ʼþÁбí½â˵
ʼþ
ä¯ÀÀÆ÷Ö§³Ö
½â˵
Ò»°ãʼþ
onclick
IE3¡¢N2
Êó±êµã»÷ʱ´¥·¢´Ëʼþ
ondblclick
IE4¡¢N4
Êó±êË«»÷ʱ´¥·¢´Ëʼþ
onmousedown
IE4¡¢N4
°´ÏÂÊó±êʱ´¥·¢´Ëʼþ
onmouseup
IE4¡¢N4
Êó±ê°´ÏºóËÉ¿ªÊó±êʱ´¥·¢´Ëʼþ
onmouseover
IE3¡¢N2
µ±Êó±êÒƶ¯µ½Ä³¶ÔÏ ......

ËÄ¡¢³ÌÒ§½ð——JavaScript»ù´¡

Ò»¡¢Ç°ÑÔ
Ajax£¬Òì²½JavaScriptºÍXML£¬Ç°ÃæÒѾ­½âÊ͹ý£¬ËùÒÔAjaxµÄѧϰ»¹°üº¬JavaScriptºÍXML£¬ÕâÀïÎÒÃÇÏÈ¿´JavaScript£¬¶øJavaScriptʵ¼ÊÉÏÓÖÊÇ°üº¬JavaScriptÓï·¨ºÍHTML DOM¼´Îĵµ¶ÔÏóÄ£Ð͵ģ¬½ÓÏÂÀ´»á·Ö±ð½éÉÜ¡£
JavaScript½Ì³Ì²Î¿¼µØÖ·£ºhttp://www.w3school.com.cn/js/index.asp
 
¶þ¡¢JavaScript»ù´¡
1)&nb ......

JavaScriptÖеÄ×Ö·û´®²Ù×÷

 Ò»¡¢¸ÅÊö
    ×Ö·û´®ÔÚJavaScriptÖм¸ºõÎÞ´¦²»ÔÚ£¬ÔÚÄã´¦ÀíÓû§µÄÊäÈëÊý¾ÝµÄʱºò£¬ÔÚ¶ÁÈ¡»òÉèÖÃDOM¶ÔÏóµÄÊôÐÔʱ£¬ÔÚ²Ù×÷cookieʱ£¬µ±È»»¹Óиü¶à...¡£JavaScriptµÄºËÐIJ¿·ÖÌṩÁËÒ»×éÊôÐԺͷ½·¨ÓÃÓÚͨÓõÄ×Ö·û´®²Ù×÷£¬Èç·Ö¸î×Ö·û´®£¬¸Ä±ä×Ö·û´®µÄ´óСд£¬²Ù×÷×Ó×Ö·û´®µÈ¡£
    µ±Ç°µÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ