易截截图软件、单文件、免安装、纯绿色、仅160KB

怎么把javascript转换成jquery???

function Page(iAbsolute,sTableId,sTBodyId)
{
this.absolute = iAbsolute; //每页最大记录数
this.tableId = sTableId;
this.tBodyId = sTBodyId;
this.rowCount = 0;//记录数
this.pageCount = 0;//页数
this.pageIndex = 0;//页索引
this.__oTable__ = null;//表格引用
this.__oTBody__ = null;//要分页内容
this.__dataRows__ = 0;//记录行引用
this.__oldTBody__ = null;
this.__init__(); //初始化;
};
/*
初始化
*/
Page.prototype.__init__ = function(){
this.__oTable__ = document.getElementById(this.tableId);//获取table引用
this.__oTBody__ = this.__oTable__.tBodies[this.tBodyId];//获取tBody引用
this.__dataRows__ = this.__oTBody__.rows;
this.rowCount = this.__dataRows__.length;
try{
this.absolute = (this.absolute <= 0) || (this.absolute>this.rowCount) ? this.rowCount : this.absolute;
        this.pageCount = parseInt(this.rowCount%this.absolute == 0
? this.rowCount/this.absolute : this.rowCount/this.absolute+1);
}catch(exception){}
this.__updateTableRows__();
};
Page.prototype.GetBar=function(obj)
{
var bar= document.getElementById(obj.id);
bar.innerHTML= "每页"+this.absolute+"条/共"+this.rowCount+"条";// 第2页/共6页 首页 上一页 1 2 3 4 5 6 下一页 末页 
}
/


相关问答:

急求一个在网页中验证用户输入的JavaScript代码

比如有一个textbox,用户输入后点button按钮时,实现用JavaScript对textbox输入信息的验证,比如验证用户输入的是否是数字。
希望将HTML代码一并写出来哈,谢谢。
HTML code:

<!DOCTYPE html PUBLIC &quo ......

后台调用JavaScript问题 - .NET技术 / ASP.NET

我在后台调用JavaScript的时候,他是在后台把事件的代码执行一次后在执行JavaScript方法
 有什么办法 在执行JavaScript方法的时候停住,在执行后面的代码
不太明白啊,说清楚点吧

就是执行后台代码的时候 ......

javascript 脚本出错

在更新面板里注册了一个JavaScript脚本(脚本的作用:滚动显示文字),在程序连续跑30分钟以后,弹出一个错误提示框,错误:未指明的错误 状态吗:0,期待高手和我一起解决。
先帮顶。。。代码呢?

自己也顶下。 ......

为什么alert没有效果呢?(JavaScript)

<html>

<head>

</head>

<body>

<div id="main">
<p class="intro">welcome to my web site </p>
<p&g ......

JavaScript开始为什么要加这行代码?

看到有很多加这行代码的:
<script>
<!--//--> <![CDATA[//> <!--

  这里面写函数
//--> <!]]>
</script>

不知道为什么会加这行代码  ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号