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

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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Generator" content="Dreamweaver8" />
<meta name="Author" content="·ãÒ¶Ëæ·ç QQ:455948725 E-mail:liukun615@126.com" />
<link rel="shortcut icon" href="http://www.fengyekun.com/favicon.ico" />
<title>JavaScriptµ¯³ö²Ëµ¥</title>
<style type="text/css">
<!--
* {font-family:"ËÎÌå", Arial, Helvetica, sans-serif; margin:0px; padding:0px; font-size:12px;}
#main {width:100%;}
#content {
    margin-top:100px;
}
#navbg {
    background:#CC0033;
}
#nav {
    position:relative;
    margin:0px auto;
    width:403px;
}
#menu li {
    float:left;
    width:100px;
    height:30px;
    line-height:30px;
}
#menu a:link,#menu a:visited,#menu a:hover {
    color:#fff;
    text-decoration:none;
}
#menudiv {
    top:0px;
    padding-top:30px;
    width:100px;
}
#menudiv table {
    width:100px;
    border-top:1px solid #fff;
    background:#CC0033;
}
#menudiv table td {
    height:25px;
    line-height:25px;
    text-align:center;
    color:#fff;
}
-->
</style&


Ïà¹ØÎĵµ£º

JavaScript »ñÈ¡¶ÔÏóµÄ¸ß¶ÈºÍ¿í¶ÈÏêϸ˵Ã÷

scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐÄ¿Ç°¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......

Javascript ÖÐ String.replace( ) µÄÃîÓÃ

<script language="javascript">
<!--
String.prototype.replaceAll = stringReplaceAll;
function stringReplaceAll(AFindText,ARepText){
raRegExp = new RegExp(AFindText,"g");
return this.replace(raRegExp,ARepText)
}
var content = "%sfasf%sfd%asdfsadf%1111%"
 // °Ñ ËùÓÐµÄ % Ì滻Ϊ #
......

JavascriptÖ®Îļþ²Ù×÷ (IE)

Ò»¡¢¹¦ÄÜʵÏÖºËÐÄ£ºFileSystemObject ¶ÔÏó 
    ÒªÔÚjavascriptÖÐʵÏÖÎļþ²Ù×÷¹¦ÄÜ£¬Ö÷Òª¾ÍÊÇÒÀ¿¿FileSystemobject¶ÔÏó¡£
¶þ¡¢FileSystemObject±à³Ì 
ʹÓÃFileSystemObject ¶ÔÏó½øÐбà³ÌºÜ¼òµ¥£¬Ò»°ãÒª¾­¹ýÈçϵIJ½Ö裺 ´´½¨FileSystemObject¶ÔÏó¡¢Ó¦ÓÃÏà¹Ø·½·¨¡¢·ÃÎʶÔÏóÏà¹ØÊôÐÔ ¡£  ......

javascript ä¯ÀÀÆ÷Ò³ÃæÌøת

    if (elename.equalsIgnoreCase("back") || elename.equalsIgnoreCase("1"))
            return "<a href=\"javascript:window.history.back()\">ºóÍË</a>";
      &nbs ......

javascript »º´æϵͳ

Ä£·ÂjQuery£¬Éè¼ÆÁËÒ»¸ö»º´æϵͳ¡£ÏñjQuery.dataÕâÑùµÄ¶«Î÷£¬PrototypeÓëmootoolsÒ²ÓУ¬Ä¿µÄ¶¼ÊÇÓÃÀ´¸¨Öúʼþϵͳ£¬ÓÃÀ´»º´æÆäÖÐÉú³ÉµÄÊý¾Ý£¬¶ø·Ç»º´æÆÕͨº¯ÊýÉϴμÆËãµÄ½á¹û¡£PrototypeÀûÓÃÁËËüµÄHashÀ࣬mootoolsûϸ¿´£¬ËüÄÚ²¿ºÃÏñÓÃÀ´»º´æuuid¡£Ò»¸ö¹²Ê¶ÊÇ£¬ÎªÒ³ÃæÓõ½µÄÔªËØÉèÖÃuuid·Ç³£ÓÐÓã¬Òª²éÕÒÔªËØʱ£¬¿ÉÒÔ±ÜÃâÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ