Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 8:28 on August 25, 2006

On the "form" for automatic trip (not the form to the letter)

To meet all the different resolution and window size, what forms of auto-control trip?
For example, in the following pages BANNER main part of a six functional modules, in full flight 1027*768 circumstances screen showed three out line, but in 800*600 1027*768 or in Latin America under the small window of the circumstances, the form will automatically trip and for the functional template shown in the two lines out?

Nobody help me?

[html]
"Table border=1 width=300>
"Script language=" Javascript ""
Switch (screen.width) (
1024 case : Wide Area Networks, j=3;
800 : i=3 case, j=2;
}
For (a=0;a<i;a++) (
Document.write ( "" tr> ");
For (b=0;b<j;b++)
Document.write ( "" [passages on congress progress omitted] "+eval (a*j+b+1) +" "patient")
Document.write ( "" Per ");
}
"/script>
"ShapeID="_x0000_i1025" DrawAspect="Content" ObjectID="_1127825915"> </o:OLEObject>

[/html]

However, the practical application of the "td></td> between the fixed?

This is precisely what is meant by incorrect?

[html]
"Head are
"Style>
Table td{
Width:50px;
Height:20px;
}
"/style>

"Script>
Var tdWidth=50;
Window.onresize=function () (
Var tdList=tbl.getElementsByTagName ( "TD");
Var tableWidth=document.body.clientWidth-50;
Var colCount=Math.floor (tableWidth/tdWidth);
If (tbl.rows[0].length!=colCount, named colCount>0) (
Var rowCount=Math.ceil (tdList.length/colCount);
Var newTbl=tbl.cloneNode (false);
For (i=0;i<rowCount;i++) (
Var trTag=newTbl.insertRow (newTbl.rows.length);
For (j=0;j<colCount;j++) (
If (tdList.length>0)
TrTag.appendChild (tdList[0]);
Else
Break;
                        }
                }
NewTbl.width=colCount*tdWidth;
Tbl.outerHTML=newTbl.outerHTML;
        }
}

"/script>
"/head>
"Body"
"Table border=1 cellpadding=0 cellspacing=0 width=650 id=tbl align=center>
"Tr>
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Per
"Tr>
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Per
"Tr>
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Td>1
"=
"Per

"ShapeID="_x0000_i1025" DrawAspect="Content" ObjectID="_1127825915"> </o:OLEObject>
"Body>
[/html]




 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com