Print? <Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = GBK"/>
</Head>
<Script type = "text/javascript">
Var barHandler = null;
Function startBar (){
ClearWaiting ();
Document. all. waitingTB. style. display = '';
RunBar (0 );
}
Function clearWaiting (){
With (document. all. waitingTB. rows [2]) {
For (var I = 0; I <cells. length; I ++ ){
Cells [I]. style. background = 'white ';
}
}
}
Function runBar (val ){
Var len = document. all. waitingTB. rows [2]. cells. length;
If (val <len-2 ){
Document. all. waitingTB. rows [2]. cells [val + 1]. style. background = 'navy ';
} Else if (val = len-2 ){
ClearWaiting ();
}
If (++ val)> (len-2 )){
Val = 0;
}
If (barHandler! = Null ){
ClearTimeout (barHandler );
}
BarHandler = setTimeout ('runbar ('+ val +') ', 500 );
}
Function doQuery1 (){
StartBar ();
}
Function doQuery2 (){
With (document. all. waiting. rows [0]) {
For (var I = 0; I <cells. length; I ++ ){
Cells [I]. style. background = 'white ';
}
}
Document. all. waiting. style. display = '';
Var len = document. all. waiting. rows [0]. cells. length;
Run (0 );
}
Function run (val ){
Var len = document. all. waiting. rows [0]. cells. length;
If (val <len ){
Document. all. waiting. rows [0]. cells [val]. style. background = 'red ';
} Else if (val = len ){
With (document. all. waiting. rows [0]) {
For (var I = 0; I <cells. length; I ++ ){
Cells [I]. style. background = 'white ';
}
}
}
If (++ val)> (len )){
Val = 0;
}
If (barHandler! = Null ){
ClearTimeout (barHandler );
}
BarHandler = setTimeout ('run ('+ val +') ', 500 );
}
</Script>
<Body>
<Table style = "width: 90%; align: center; margin-left: 15px;">
<Tr> <td> <input type = "button" value = "view scroll bar 1" onclick = "doQuery1 ()"/>
<Input type = "button" value = "view scroll bar 2" onclick = "doQuery2 ()"/>
</Td> </tr>
</Table>
<Table id = "coverDiv" align = "center">
<Tr>
<Td align = "center" valign = "middle">
<Table id = "waitingTB" cellspacing = "2" cellpadding = "2" style = "font-size: 13px; color: navy; border: 3px double navy; background: white; display: none; ">
<Tr> <td colspan = "22"> </td> </tr>
<Tr> <td align = "center" colspan = "22"> querying... please wait </td> </tr>
<Tr>
<Td> </td>
<Td> </td>
<Td> </td>
<Td> </td>
<Td> </td>
<Td> </td>
</Tr>
<Tr> <td colspan = "22"> </td> </tr>
</Table>
</Td>
</Tr>
</Table>
<Table id = "coverDiv" align = "center">
<Tr>
<Td align = "center" valign = "middle">
<Table id = "waiting" cellspacing = "2" cellpadding = "2" style = "font-size: 13px; color: navy; border: 3px double navy; background: white; display: none; ">
<Tr>
<Td> </td>
<Td> </td>
<Td> </td>
<Td> </td>
<Td> </td>
<Td> </td>
</Tr>
</Table>
</Td>
</Tr>
</Table>
</Body>
</Html>
<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = GBK"/>
</Head>
<Script type = "text/javascript">
Var barHandler = null;
Function startBar (){
ClearWaiting ();
Document. all. waitingTB. style. display = '';
RunBar (0 );
}
Function clearWaiting (){
With (document. all. waitingTB. rows [2]) {
For (var I = 0; I <cells. length; I ++ ){
Cells [I]. style. background = 'white ';
}
}
}
Function runBar (val ){
Var len = document. all. waitingTB. rows [2]. cells. length;
If (val <len-2 ){
Document. all. waitingTB. rows [2]. cells [val + 1]. style. background = 'navy ';
} Else if (val = len-2 ){
ClearWaiting ();
}
If (++ val)> (len-2 )){
Val = 0;
}
If (barHandler! = Null ){
ClearTimeout (barHandler );
}
BarHandler = setTimeout ('runbar ('+ val +') ', 500 );
}
Function doQuery1 (){
StartBar ();
}
Function doQuery2 (){
With (document. all. waiting. rows [0]) {
For (var I = 0; I <cells. length; I ++ ){
Cells [I]. style. background = 'white ';
}
}
Document. all. waiting. style. display = '';
Var len = document. all. waiting. rows [0]. cells. length;
Run (0 );
}
Function run (val ){
Var len = document. all. waiting. rows [0]. cells. length;
If (val <len ){
Document. all. waiting. rows [0]. cells [val]. style. background = 'red ';
} Else if (val = len ){
With (document. all. waiting. rows [0]) {
For (var I = 0; I <cells. length; I ++ ){
Cells [I]. style. background = 'white ';
}
}
}
If (++ val)> (len )){
Val = 0;
}
If (barHandler! = Null ){
ClearTimeout (barHandler );
}
BarHandler = setTimeout ('run ('+ val +') ', 500 );
}
</Script>
<Body>
<Table style = "width: 90%; align: center; margin-left: 15px;">
<Tr> <td> <input type = "button" value = "view scroll bar 1" onclick = "doQuery1 ()"/>
<Input type = "button" value = "view scroll bar 2" onclick = "doQuery2 ()"/>
</Td> </tr>
</Table>
<Table id = "coverDiv" align = "center">
<Tr>
<Td align = "center" valign = "middle">
<Table id = "waitingTB" cellspacing = "2" cellpadding = "2" style = "font-size: 13px; color: navy; border: 3px double navy; background: white; display: none; ">
<Tr> <td colspan = "22"> </td> </tr>
<Tr> <td align = "center" colspan = "22"> querying... please wait </td> </tr>
<Tr>
<Td> </td>
<Td> </td>
<Td> </td>
<Td> </td>
<Td> </td>
<Td> </td>
</Tr>
<Tr> <td colspan = "22"> </td> </tr>
</Table>
</Td>
</Tr>
</Table>
<Table id = "coverDiv" align = "center">
<Tr>
<Td align = "center" valign = "middle">
<Table id = "waiting" cellspacing = "2" cellpadding = "2" style = "font-size: 13px; color: navy; border: 3px double navy; background: white; display: none; ">
<Tr>
<Td> </td>
<Td> </td>
<Td> </td>
<Td> </td>
<Td> </td>
<Td> </td>
</Tr>
</Table>
</Td>
</Tr>
</Table>
</Body>
</Html>