Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 = event


Ïà¹ØÎĵµ£º

Javascriptѧϰ±Ê¼Ç

Ò». »ù´¡Æª
  1.  Javascriptѧϰ±Ê¼Ç1——Êý¾ÝÀàÐÍ
  2.  Javascriptѧϰ±Ê¼Ç2——º¯Êý
  3.  Javascriptѧϰ±Ê¼Ç3——×÷ÓÃÓò
  4.  Javascriptѧϰ±Ê¼Ç4——Evalº¯Êý
  5.  Javascriptѧϰ±Ê¼ ......

ÔÚjavascriptÖÐ ¶ÁÈ¡ struts2 s:datetimepickerÖеÄÖµ

ÎÒ¿ªÊ¼×öÕâ¸öµÄʱºò
»ñÈ¡ s:datetimepickerÀïÃæµÄÖµÏñÍù³£Ò»Ñù document.forms[0].elemets["date"].value;
µ«ÊÇÔÚ IEä¯ÀÀÆ÷ÖÐ×ÜÊDZ¨Ò»¸ö  value Õâ¸ö¶ÔÏó²»´æÔÚ
µ«ÊÇ ÔÚ »ðºüä¯ÀÀÆ÷ÖÐʹÓà document.forms[0].elemets["date"].value; ¿ÉÒÔ
ºóÀ´µ½¹ÙÍøÉϲéÁËһϣ¬
 
s:datetimepickerÖеÄÖµÔÚjavascriptÖÐÊÇ ......

Javascript »ñÈ¡Ò³Ãæ¸ß¶È£¨¶àÖÖä¯ÀÀÆ÷£©

¹ØÓÚ»ñÈ¡¸÷ÖÖä¯ÀÀÆ÷¿É¼û´°¿Ú´óСµÄÒ»µãµãÑо¿¡£
ÔÚÎÒ±¾µØ²âÊÔµ±ÖУº
ÔÚIE¡¢FireFox¡¢Opera϶¼¿ÉÒÔʹÓÃ
document.body.clientWidth
document.body.clientHeight
¼´¿É»ñµÃ£¬ºÜ¼òµ¥£¬ºÜ·½±ã¡£
¶øÔÚ¹«Ë¾ÏîÄ¿µ±ÖУº
OperaÈÔȻʹÓÃ
document.body.clientWidth
document.body.clientHeight
¿ÉÊÇIEºÍFireFoxÔòʹÓÃ
docu ......

Javascript DOM»ù´¡

DOMÊÇÕë¶ÔXMLµÄ»ùÓÚÊ÷µÄAPI£¬ËüÓëÓïÑÔÎ޹أ¬ÊµÏÖ·½Ê½ÓкܶàÖÖ£¨¸÷ÓïÑÔ»ù±¾¶¼ÓÐ×Ô¼ºµÄʵÏÖ£©¡£
²»¹ýÎÒÃǾ­³£Óõģ¬ÊÇJavaScript ϵÄdomÕë¶ÔxhtmlµÄ²Ù×÷£¬Ö»ÊÇdomµÄÒ»¸ö·ÖÖ§Ó¦Óá£
Ãû´Ê½âÊÍ£º
Dom£ºÎĵµ¶ÔÏóÄ£ÐÍ¡£Document object model
Bom£ºä¯ÀÀÆ÷¶ÔÏóÄ£ÐÍ£¬Ò²¿ÉÒԽд°¿Ú¶ÔÏóÄ£ÐÍ¡££¨window object model.£©
API£ºÓ ......

ÓÃJavascriptÅжÏͼƬÊÇ·ñÔÚ´æÔÚ

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>php°®ºÃÕß|phpfans.net|---ÅжÏÔ¶³ÌͼƬÊÇ·ñ´æÔÚ£¬·ñÔòÌæ»»³ÉĬÈÏͼƬ</title>
</head>
<body>
<p>ÅжÏÔ¶³ÌͼƬÊÇ·ñ´æÔÚ£¬²»´æÔڵĻ°Ìæ»»³ÉĬÈ쵀 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ