Ôõô°Ñ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 ÏÂÒ»Ò³ ĩҳ
}
/
Ïà¹ØÎÊ´ð£º
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getEleme ......
Õâ¸ö±íµ¥µÄÊýÖµ²»Êǹ̶¨µÄ£¡µ±°´ÏÂÍ£Ö¹°´Å¥µÄʱºò×îÖÕµÄÊý×ֲŻáÍ£ÔÚÉÏÃæ£¡
ÎÒÏë°Ñ×îºóͣϵÄÊý×Ö´«ËÍ´«Ë͵½ÏÂÒ»¸öASPÒ³ÃæÉÏÈ¥£¡
²»ÏëʹÓÃlocation.href="mnn.asp?action="+ok1ÕâÑùµÄ·½Ê½´«Ë͹ýÈ¥
......
ÎÊÌâÃèÊöÈçÏ£º
ÓÃC#¿ª·¢µÄActiveXǶÈëÍøÒ³ÖУ¬¸ÃActiveXÖÐÓÐÒ»¸ö°´Å¥button1.ÏÖÔÚҪʹµÃÓû§µ¥»÷ÁËbutton1ºóʵÏÖÒ³ÃæÌø×ªµÄ¹¦ÄÜ£¬¼´Óɵ±Ç°µÄ1.htmÌø×ªµ½2.htm¡£
Î ......
1.¿´µ½¡¶¾«Í¨javascript¡·ÉÏ˵£ºjavascriptÊÇÍêÈ«Òì²½µÄ£¬ÄÇôÊDz»ÊÇÿÌõÓï¾ä¶¼²»»áÖ´ÐÐÍ꣬ÏÂÌõÓï¾ä¾Í¿ªÊ¼Ö´ÐÐÄØ£¬Êµ¼ÊÉϲ»ÊÇÕâÑù£¬Ò²²»¿ÉÄÜÊÇÕâÑù£¬²»È»Ôõôд³ÌÐò£¿
2.´úÂëÈçÏ£¬ÎªÊ²Ã´²»¿ÉÐÐÄØ£º
JScript ......
ºǫ́ÓÐÒ»¸öº¯Êý protected string Fun1(int a, string b)
ÎÒÏëÔÚjavascript´úÂëÖе÷ÓÃËü£¬Ôõô×ö£¿
function GridBind()
{
var a = 1;
var b='s';
& ......