<script language=javascript >
Field title (Field name # field width # data alignment)
var datatitles=new Array (
"Singer/group #90 #left",
"Album name #130 #left",
"The issuing company #110 #left",
"This week's ranking #58 #center",
"Status #58 #center",
"Last week ranked #58 #center",
"Week of the list #58 #center",
"Highest ranking #58 #center",
"Percentage of sales #70 #center")
<script language=javascript>
var boxwidth = 480//table display width (excluding scroll)
var showline = 10//table showing number of columns
var rsheight = 21/Data column height
var lockcols = 1//number of fields to be locked (from left to right)
function resettable (n) {
var iboxwidth=0
for (i=0;i<datatitles.length;i++) {
if (i< (n+1)) {
var ctitle=datatitles[i].split ("#")
Iboxwidth+=parseint (Ctitle[1])
}
}
if (iboxwidth>boxwidth) {
var sure=confirm ("\ nthe width of the locked field is greater than the width of the table display, which may cause the layout to display abnormally.") \n\n\n Are you sure you want to continue? ")
}else{
Sure=true
}
if (sure) {
Lockcols= (lockcols==n+1)? 0:n+1
Writetable ()
}
}
function Sync_roll () {
Datagroup1.style.postop=-dataframe3.scrolltop
Datagroup2.style.postop=-dataframe3.scrolltop
}
Window.onload=writetable
</SCRIPT>
<meta content= "MSHTML 6.00.2800.1170" name=generator><BODY>
<CENTER>
<H4> Lock table Field example page </H4><!--//Table (START)//-->
<table cellspacing=0 cellpadding=0 border=0>
<TBODY>
<TR>
<td
style= "Border-right:white 2px inset; Border-top:white 2px inset; Border-left:white 2px inset; Border-bottom:white 2px inset; Background-color:scrollbar ">
<div id=datatable></div></td></tr></tbody></table><!--//Information table (end)//-->
<P> Click to reset or remove the current lock status </P></CENTER></BODY></HTML>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.