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

JavaScript ¸´Ñ¡¿òµÄ·´Ñ¡

 
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>ÎÞ±êÌâÒ³</title>
<mce:script language="javascript" type="text/jscript"><!--
function CheckOthers(ck)
{
for(var i=0;i<ck.elements.length;i++)
{
if(ck.elements[i].type=="checkbox")
{
if(ck.elements[i].checked==false)
{
ck.elements[i].checked=true;
}
else
{
ck.elements[i].checked=false;
}
}
}
}

// --></mce:script>
</head>
<body>
<form id="fm">
<table style="width: 180px" border="2" id="tb">
<tr>
<td colspan="2">
<input id="Checkbox1" type="checkbox" name="ck"/><label for="Checkbox1">±±¾©°ÂÔË»á</label></td>
</tr>
<tr>
<td colspan="2">
<input id="Checkbox2" type="checkbox" name="ck"/><label for="Checkbox2">Â׶ذÂÔË»á</label></td>
</tr>
<tr>
<td colspan="2">
<input id="Checkbox3" type="checkbox" name="ck"/><label for="Checkbox3">ÀïÔ¼ÈÈÄÚ¬°ÂÔË»á</label></td>
</tr>
<tr>
<td colspan="2">
<input id="Checkbox4" type="checkbox" name="ck"/><label for="Checkbox4">°Ä´óÀûÑÇ°ÂÔË»á</label></td>
</tr>
<tr>
<td colspan="2">
<input id="Checkbox5" type="checkbox" name="ck"/><label for="Checkbox5">ÄÏ·ÇÊÀ½ç±­</label></td>
</tr


Ïà¹ØÎĵµ£º

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

 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" ²»×¼Õ ......

ÉîÈëÈÏʶjavascriptÖеÄevalº¯Êý

·¢ÏÖΪ±¾ÎÄÆðÒ»¸öºÏÊʵıêÌ⻹²»ÊÇÄÇôÈÝÒ×£¬ºÇºÇ£¬ËùÒÔÔÚ´ËÏÈ˵Ã÷ϱ¾ÎĵÄÁ½¸öÄ¿µÄ£º
£¨1£©½éÉÜjavascriptÖеÄevalº¯ÊýµÄÓ÷¨
£¨2£©ÈçºÎÔÚº¯ÊýÄÚÖ´ÐÐÈ«¾Ö´úÂë
►ÏÈÀ´ËµevalµÄÓ÷¨£¬ÄÚÈݱȽϼòµ¥£¬ÊìϤµÄ¿ÉÒÔÌø¹ý¡£
evalº¯Êý½ÓÊÕÒ»¸ö²ÎÊýs£¬Èç¹ûs²»ÊÇ×Ö·û´®£¬ÔòÖ±½Ó·µ»Øs¡£·ñÔòÖ´ÐÐsÓï¾ä¡£Èç¹ûsÓï¾äÖ´Ðнá¹ûÊÇÒ»¸ö ......

FirefoxºÍIEÖ®¼ä7¸öJavaScript²îÒì

¾¡¹Ü JavaScript ÀúÊ·ÉÏʹÓÃÈß³¤¶øÁîÈËÉúÑáµÄ´úÂë¿éÀ´±êµÄÌض¨ä¯ÀÀÆ÷µÄʱÆÚÒѾ­½áÊøÁË£¬µ«ÊÇż¶ûʹÓÃһЩ¼òµ¥µÄ´úÂë¿éºÍ¶ÔÏó¼ì²âÀ´È·±£Ò»Ð©´úÂëÔÚÓû§»úÆ÷ÉÏÕý³£¹¤×÷ÒÀÈ»ÊDZØÒªµÄ¡£
ÕâƪÎÄÕÂÖУ¬ÎÒ»áÂÔÊöһϠInternet Explorer ºÍ Firefox ÔÚ JavaScript Óï·¨Éϲ»Í¬µÄ 7 ¸ö·½Ãæ¡£
1. CSS “float” ÊôÐÔ
»ñÈ¡ ......

javascript ²Ù×÷ÈÕÆÚ ²âÊÔ(×¢Òâä¯ÀÀÆ÷¼æÈÝÎÊÌ⣩

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>javas
cript ²Ù×÷ÈÕÆÚ ²âÊÔ</title>
<meta http-equiv= ......

C#ºÍJavaScriptµÄ¼òµ¥»¥½»

 
1.asp.netºô½Ðjs
   
                     Response.Write("<script language=javascript>");
              ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ