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

JavaScriptʵÏÖÒ³ÃæÌø×ªµÄ¼¸ÖÖ·½Ê½

     
1. °´Å¥Ê½£º
¡¡¡¡<INPUT name="pclog" type="button" value="GO" onClick="location.href='http://xxxx.cn/'">
¡¡¡¡
2. Á´½Óʽ£º
¡¡¡¡<a href="javascript:history.go(-1)">·µ»ØÉÏÒ»²½</a>
¡¡¡¡<a href="<%=Request.ServerVariables("HTTP_REFERER")%>">·µ»ØÉÏÒ»²½</a>
¡¡¡¡
3. Ö±½ÓÌø×ªÊ½£º
¡¡¡¡<script>window.location.href='http://www.xxxx.cn';</script>
¡¡¡¡
4.¿ªÐ´°¿Ú£º
¡¡¡¡<a href="javascript:" onClick="window.open('http://www.xxxx.html','','height=500,width=611,scrollbars=yes,status=yes')">·îÌì³ÐÔË</a>
   
5. ×Ô¶¯Ìø×ª£º
<html>
<head>
<title>newpaeg</title>
</head>
<script language='Javascript'>
function go(){
window.location="http://www.sohu.com";  //Ìø×ªµ½http://www.sohu.comÒ³Ãæ£¬×ªÖÁͬһĿ¼»¹ÊÇÆäËüÍøÒ³¿´Äã¸øµÄµØÖ·ÁË
}
setTimeout("go()",5000);
/5ÃëÖÓºóÖ´ÐÐgo()
}
</script>
<body>
</body>
</html>


Ïà¹ØÎĵµ£º

JavascriptʵÏÖhtml¿éÓï·¨¸ßÁÁ£¨ËÑË÷ºó¹Ø¼ü×Ö¸ßÁÁ£©

dp.SyntaxHighlighter
dp.SyntaxHighlighter£¬Õâ¶«Î÷yahoo¶¼ÔÚÓÃËü£¬Ö§³Ö¶àÖÖÓïÑÔ¡£
Ö»ÐèÒª½«´úÂë·Åµ½<textarea>±êÇ©ÄÚ£¬Ëü¾Í¿ÉÒÔ×Ô¶¯¸ù¾ÝclassÖ¸¶¨µÄÓïÑÔÀ´¶ÔtextareaÄÚÈݽøÐÐ×ÅÉ«£¬»¹ÌṩÁËÐкš¢´òÓ¡µÈ¹¦ÄÜ¡£È磺
Xml´úÂë
<TEXTAREA class=java name=code><br/>    // code here ......

javascriptÔÚalert֮ǰתÒåµ¥ÒýºÅ

¶ÔÓÚ1¸öµ¥ÒýºÅ£¬ÔòתÒå¸Ãµ¥ÒýºÅ
¶ÔÓÚ1¸ö·´Ð±¸Ü¸ú1¸öµ¥ÒýºÅ£¬Ôò²»¹ÜËü¡£
¶ÔÓÚ2¸ö¼°ÒÔÉϵķ´Ð±¸Ü¼ÓÒ»¸öµ¥ÒýºÅ£¬Ôò·Ö±ð¶Ôÿ¸ö·´Ð±¸ÜºÍµ¥ÒýºÅ¶¼½øÐÐתÒ壬¼´ ʹ·´Ð±¸ÜÊýÄ¿±£³Ö²»±ä£¬ ²¢×ªÒåµ¥ÒýºÅ¡£
 

/// <summary>
/// ¶ÔÓÚµ¥ÒýºÅ¶øÑÔ£¬ÈôÇ°ÃæÓÐżÊý¸ö·´Ð±¸ÜÔòÒì³££¬ÆæÊý¸ö·´Ð±¸ÜÔòÕý³£
/// < ......

JavaScript ÕýÔò±í´ïʽ¾­µäʵÀýÕûÀí

 <html>
<head>
<title>test javaScript</title>
//cssÉèÖÃͼÏñµÄ͸Ã÷¶È
<mce:style><!--
img
{
filter:alpha(opacity=10)
}
--></mce:style><style mce_bogus="1">img
{
filter:alpha(opacity=10)
}</style>
<mce:script type="text/javasc ......

javascriptÖÐsubstr,substring,slice.spliceµÄÇø±ð

substr() ·½·¨¿ÉÔÚ×Ö·û´®ÖгéÈ¡´Ó start ϱ꿪ʼµÄÖ¸¶¨ÊýÄ¿µÄ×Ö·û.
stringObject.substr(start,length);start±ØÐë,length¿ÉÑ¡.
start ÊǽØÈ¡µÄ¿ªÊ¼Î»ÖõÄϱê,´Ó0¿ªÊ¼ËãÆð,±ØÐëÊÇÊý×Ö.¿ÉÒÔÊǸºÊý,-1Êǵ¹ÊýµÚÒ»¸ö×Ö·û,-2Êǵ¹ÊýµÚ¶þ¸ö×Ö·û,ÒÔ´ËÀàÍÆ.
length ÊÇÒª½ØÈ¡µÄ×Ö·ûµÄ³¤¶È,±ØÐëÊÇÊý×Ö.Èç¹ûδָ¶¨,Ôò´ÓstartλÖô¦¿ ......

Jquery,Ò»¸ö·Ç³£ºÃÓõÄjavascript¿ò¼Ü,1.4°æ·¢²¼

ÓÃjquery-1.2.3×ö¹ý¼¸¸öÓ¦ÓÃ,¾õµÃºÜºÃÓÃ. Õâô¿ì,1.4°æÓÖ·¢²¼ÁË,À´×ÔcsdnµÄ±¨µÀ:
CSDN±¨µÀ À´×Ôjquery¹Ù·½ÍøÕ¾µÄÏûÏ¢£¬Ä¿Ç°×îÁ÷ÐеÄJavaScript/Ajax¿âjQueryа汾1.4ÒѾ­·¢²¼£¬ÎªjQueryÏîÄ¿4ÖÜÄê14ÌìÇì×£ËÍÉÏÒ»·Ý´óÀñ¡£
1.4µÄѹËõ°æÖ»ÓÐ23K£¬Î´Ñ¹Ëõ°æ154K¡£´ËÍ⣬GoogleÒ²ÔÚ×Ô¼ºµÄ·þÎñÆ÷ÉÏÌṩÁ˸±±¾£¬×÷ΪGoogle Ajax A ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ