<head>
< %
'生成 css 类 ,用于配置表格
cssClassName="t"
cssClassNameMaxID=400
cssClassNameMinID=1
minWidth=50
Response.Write "<style>"
Response.Write vbcrlf
for i=cssClassNameMinID to cssClassNameMaxID
Response.Write "." & cssClassName & i
Response.Write "{cursor:default;font-size:13;color:ff0000;width:" & (minWidth i) & "}"
Response.Write vbcrlf
next
Response.Write "</style>"
% >
</head>
<body onmouseup="mUp();tmUp();">
<table border="0" cellpadding="0" id="table1" bgcolor=f0f0f0 cellspacing="0" >
<tr bgcolor=dddddd height=23>
<td style='border-bottom:1 solid #707070' background="http://image.chinaitpower.com/image/20050323/13038.gif" class="< %=cssClassName & "100"% >"> 保镖</td>
<td style='border-bottom:1 solid #707070' width=5 id="a1" align="center" onmousedown="mDown('1')" onmousemove="mMove('1');" onmouseup="mUp()" onmouseout="mOut();" ><img src="http://image.chinaitpower.com/image/20050323/13040.gif" border=0 height=23></td>
<td style='border-bottom:1 solid #707070' background="http://image.chinaitpower.com/image/20050323/13038.gif" align=center class="< %=cssClassName & "100"% >"> 厨师</td>
<td style='border-bottom:1 solid #707070' width=5 id="a3" onmousedown="mDown('3')" onmousemove="mMove('3');" onmouseup="mUp()" onmouseout="mOut();" ><img src="http://image.chinaitpower.com/image/20050323/13040.gif" border=0 height=23></td>
<td style='border-bottom:1 solid #707070' background="http://image.chinaitpower.com/image/20050323/13038.gif" align=center class="< %=cssClassName & "100"% >"> 司机</td>
<td style='border-bottom:1 solid #707070' width=5 id="a5" onmousedown="tmDown()" onmousemove="tmMove();" onmouseup="tmUp()" onmouseout="tmOut();" ><img src="http://image.chinaitpower.com/image/20050323/13040.gif" border=0 height=23></td>
</tr>
< %
rcount=1
for i=1 to 10
rcount=rcount 1
% >
<tr height=23>
<td style='border-bottom:1 solid #e0e0e0' class="< %=cssClassName & "100"% >" >
孙悟空
</td>
<td style='border-bottom:1 solid #e0e0e0'> </td>
<td style='border-bottom:1 solid #e0e0e0' class="< %=cssClassName & "100"% >" align=center >
猪八戒
</td>
<td style='border-bottom:1 solid #e0e0e0'> </td>
<td style='border-bottom:1 solid #e0e0e0' class="< %=cssClassName & "100"% >" align=center >
沙和尚
</td>
<td style='border-bottom:1 solid #e0e0e0'> </td>
</tr>
< %next% >
</table>
</body>
< script language=javascript>
var minWidth="<%=minWdith%>";
var cNameRoot="<%=cssClassName%>";
var rowCount="<%=rcount%>";
var mYes="0";
var mLeft;
var leftID0;
var rightID0;
var misAdjust=1.2 //用于调整误差
var tmYes="0";
//定义拖拉时鼠标指针样式
var ie6;
ie6 = (window.navigator.appVersion.indexOf("MSIE 6.") !=0)
if(ie6)
{
document.getElementById("a1").style.cursor='col-resize';
document.getElementById("a3").style.cursor='col-resize';
}
else
{
document.getElementById("a1").style.cursor='w-resize';
document.getElementById("a3").style.cursor='w-resize';
}
document.getElementById("a5").style.cursor='w-resize';
function mOut()
{
mYes="0"
}
function mUp()
{
mYes="0"
}
function mDown(curColumn)
{
var className0;
mYes="1";
className0=document.getElementById("table1").rows[0].cells[parseInt(curColumn)-1].className;
leftID0=className0.substring(cNameRoot.length,className0.length);
className0=document.getElementById("table1").rows[0].cells[parseInt(curColumn) 1].className;
rightID0=className0.substring(cNameRoot.length,className0.length);
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




