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

javascript ʵÏÖ·ÖÒ³Ìõ

function Paging(pageNum,pageSize,totalCount,skipCount,fuctionName,currentStyleName,currentUseLink,preText,nextText,firstText,lastText)
{
//debugger;
    var returnValue = "";
    var begin = 1;
    var end = 1;
    var totalpage = Math.floor(totalCount / pageSize);
    if(totalCount % pageSize >0)
    {
        totalpage ++;
    }
   
    if(preText == null)
    {
        firstText = "prev";
    }
    if(nextText == null)
    {
        nextText = "next";
    }
   
    begin = pageNum - skipCount;
    end = pageNum + skipCount;
   
    if(begin <= 0)
    {
        end = end - begin +1;
        begin = 1;
    }
   
    if(end > totalpage)
    {
        end = totalpage;
    }
    for(count = begin;count <= end;count ++)
    {
        if(currentUseLink)
        {
            if(count == pageNum)
            {
                returnValue += "<a class=\""+currentStyleName+"\" href=\"javascript:void(0);\" onclick=\""+fuctionName+"("+count.toString()+");\">"+co


Ïà¹ØÎĵµ£º

javascriptÀïµÄdocument.allÓ÷¨

1
¡¢Àí½âdocument.all
[]
¡¡¡¡´ÓIE4¿ªÊ¼IEµÄobject
model²ÅÔö¼ÓÁËdocument.all
[],À´¿´¿´document.all
[]µÄDescription:
Array
of all HTML tags in the document.Collection of all elements contained by the
object.
¡¡¡¡Ò²¾ÍÊÇ˵document.all
[]ÊÇÎĵµÖÐËùÓбêÇ©×é³ÉµÄÒ»¸öÊý×é±äÁ¿£¬°üÀ¨ÁËÎĵµ¶ÔÏóÖÐËùÓ ......

javascript ÕýÔò±í´ïʽ È¥³ý¿Õ¸ñ

! È¥³ý×Ö·û´®Á½¶Ë¿Õ¸ñµÄ´¦Àí
¡¡¡¡Èç¹û²ÉÓô«Í³µÄ·½Ê½,¾ÍÒª¿ÉÄܾÍÒª²ÉÓÃÏÂÃæµÄ·½Ê½ÁË
¡¡¡¡//Çå³ý×ó±ß¿Õ¸ñ
¡¡¡¡function js_ltrim(deststr)
¡¡¡¡{
¡¡¡¡if(deststr==null)return "";
¡¡¡¡var pos=0;
¡¡¡¡var retStr=new String(deststr);
¡¡¡¡if (retStr.lenght==0) return retStr;
¡¡¡¡while (retStr.substring(pos, ......

JavaScriptÄܽ«Ò³ÃæÖеÄͼƬµ¼³öµ½excel


Javascript´úÂë
<script>    
var idTmr = "";    
function copy(tabid){    
var oControlRange = document.body.createControlRange();    
oControlRange.add(tabid,0);    
oControlR ......

javascript¼¼Êõ¼¼ÇÉ´óÈ«

//¸÷Öֳߴç
s  +=  "\r\nÍøÒ³¿É¼ûÇøÓò¿í£º"+  document.body.clientWidth;  
s  +=  "\r\nÍøÒ³¿É¼ûÇøÓò¸ß£º"+  document.body.clientHeight;  
s  +=  "\r\nÍøÒ³¿É¼ûÇøÓò¸ß£º"+  document.body.offs ......

JavaScript ±Ê¼Ç myhere

// ´óѧÀï×îÍ´¿àµÄÊÂÇéιýÓÚ×ö±ÏÒµÉè¼Æ£¬Ä¿Ç°Õý´¦ÓÚÕâ¸öʱÆÚ¡£
// £º£¨ :(
//
// Ê×ÏȼǼϵÄÊÇ Function µÄÒ»¸öÎÊÌâ
Function.prototype.method = function( name, func){
if( ! this.prototype[ name]){
this.prototype[ name ] = func;
}
} // ¸ø º¯ÊýÔ­ÐÍÔö¼Ó·½·¨
//
// ¸øº¯ÊýÔ­ÐÍÔö¼ÓµÄ·½·¨ÔÚ St ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ