# Create ydds
# Date 2008-06-20
Var nextPageNo = 0;
Function pageTop (){
NextPageNo = 0
Document. getElementById ("bodyDiv"). innerHTML = HTMLStr [nextPageNo];
LoadData ('bodydiv ');
CheckTime ();
}
Function pageNext (){
If (nextPageNo <HTMLStr. length-1)
NextPageNo ++;
Document. getElementById ("bodyDiv"). innerHTML = HTMLStr [nextPageNo];
LoadData ('bodydiv ');
CheckTime ();
}
Function pageFor (){
If (nextPageNo> 0)
NextPageNo --;
Document. getElementById ("bodyDiv"). innerHTML = HTMLStr [nextPageNo];
LoadData ('bodydiv ');
CheckTime ();
}
Function pageBottom (){
NextPageNo = HTMLStr. length-1;
Document. getElementById ("bodyDiv"). innerHTML = HTMLStr [nextPageNo];
LoadData ('bodydiv ');
CheckTime ();
}
Function goPage (){
Var numStr = document. getElementById ("InputNo"). value;
If (numStr = undefined | numStr = null ){
Return;
}
Var num = parseInt (numStr );
If (num> HTMLStr. length ){
NextPageNo = HTMLStr. length-1;
}
Else {
NextPageNo = num-1;
}
Document. getElementById ("bodyDiv"). innerHTML = HTMLStr [nextPageNo];
LoadData ('bodydiv ');
CheckTime ();
}
This article is from the "one lamp" blog