Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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://s.click.taobao.com/t_1?i=qXKYyI83IA4WJA%3D%3D&p=mm_13579336_0_0&n=11">
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.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


Ïà¹ØÎĵµ£º

JavascriptʵÀý½Ì³Ì(8) ¼ìÑé±íµ¥ÓÐЧÐÔ

±íµ¥µÄÓÐЧÐÔ¼ìÑéÊÇjavascriptÒ»¸öºÜÓÐÓõķ½Ãæ¡£Ëü¿ÉÒÔÓÃÓÚ¼ì²éÒ»¸ö¸ø¶¨µÄ±íµ¥ÒÔ¼°·¢ÏÖ±íµ¥ÖеÄÈκÎÎÊÌ⣬±ÈÈçÒ»¸ö¿Õ°×µÄÊäÈë¿ò»òÕßÒ»¸öÎÞЧµÄE-mail£¨µç×ÓÓʼþ£©µØÖ·£¬È»ºóËü¿ÉÒÔ֪ͨÓû§²¢ÇҾͲ»»á½«ÕâЩ´íÎóµÄ±íµ¥´«¸ø·þÎñÆ÷ÒÔ½Úʡʱ¼ä¡£ÁíÍ⣬³ý´ËÒÔÍ⣬¶Ô±íµ¥±êÇ©µÄһЩÐ޸ĸúÆäËüÀàÐ͵Ľű¾ÊÇÀàËƵġ£ÒÔϵÄÀý×ÓÊÇÒ» ......

Javascript²Ù×÷Xml

תÔØ×Ô http://hi.baidu.com/leizuman/blog/item/b9e93f015e86f20e7bec2cde.html
1.xmlÎļþÈçÏ£º
<?xml version="1.0" encoding="UTF-8"?>
<zip>
<city>
mycity</city>
<state>mystate</state>
</zip>
2.¶Á´ËxmlµÄjavascriptÀý×Ó£º
<!DOCTYPE HTML PUBLIC "-//W3C/ ......

javascriptµ¯³ö´°¿Ú´úÂë´óÈ«

ÈçºÎÀûÓÃÍøÒ³µ¯³ö¸÷ÖÖÐÎʽµÄ´°¿Ú£¬ÎÒÏë´ó¼Ò´ó¶à¶¼ÊÇÖªµÀЩµÄ£¬µ«ÄÇÖÖ¶àÖÖ¶àÑùµÄµ¯³öʽ´°¿ÚÊÇÔõô¸ã³öÀ´µÄ£¬ÎÒÃǽñÌì¾ÍÀ´Ñ§Ï°Ò»Ï£º 1.µ¯ÆôÒ»¸öÈ«ÆÁ´°¿Ú
;
www.kunde58.com

2.µ¯ÆôÒ»¸ö±»F11»¯ºóµÄ´°¿Ú
;
www.kunde58.com

3.µ¯ÆôÒ»¸ö´øÓÐÊÕ²ØÁ´½Ó¹¤¾ßÀ¸µÄ´°¿Ú ......

ÍøÒ³ÖÆ×÷Javascript¾­µäС¼¼ÇÉ

 ×ª×Ôhttp://topic.csdn.net/u/20091014/12/44b0ac69-5228-429b-854a-a91e3736f1d4.html?64368
ÿһÏÊÇJSÖеÄС¼¼ÇÉ£¬µ«Ê®·ÖµÄʵÓã¡
1.document.write(”"); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document->html->(head,body)
4.Ò»¸öä¯ÀÀÆ÷´°¿ÚÖеÄDOM˳ÐòÊÇ:window->(navig ......

javascriptÊý×é

 optionsÊý×é
¡¡¡¡¸ÃÊý×éÊÇselect¶ÔÏóµÄÒ»¸öÊôÐÔ,¼´Ñ¡Ôñ¿òÖеÄËùÓÐÑ¡Ïî(<OPTION>)µÄÒ»¸öÁÐ±í¡£
¡¡¡¡ÊôÐÔ
¡¡¡¡defaultSelected Ñ¡ÏîÁбíÖеÄȱʡѡÏî
¡¡¡¡index Ñ¡ÏîÁбíÖÐijѡÏîµÄË÷ÒýλÖÃ
¡¡¡¡length Ñ¡ÏîÁбíÖеÄÑ¡ÏîÊý(<OPTIONS>)
¡¡¡¡name Ñ¡ÏîÁбíµÄÃû×Ö(NAMEÌØÐÔ)
¡¡¡¡selected ±íÊ¾Ñ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ