比如在HTML里可以给很多控件制订客户端行为比如onMouseDown这种鼠标事件,在SUB 的控件就不能设置了
比如
我建立了一个HTMLTABLECELL叫tc
可以tc.bgcolor="#d1dceb"
却不能tc.onMouseDown=……因为HTMLTABLECELL没有onMouseDown这个方法和属性
谁能告诉我怎么能象在HTML那样设置ASP。NET中的空间的客户端行为或者其他类似的情况举个简单的例子:
客户端HTML是这样的
<script language=JavaScript1.2>
<!--
function ForumMenu (Obj) {
if (Obj.style.display=="none") {
Obj.style.display="";
} else {
Obj.style.display="none";
}
}
//-->
</script><table width="100%" height="53" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#B0C4DD">
<tr>
<td height="5" bgcolor="#d1dceb" class="text" onMouseDown="ForumMenu(c111);">
111</td>
</tr>
<tr id="c111" style="Display:'none';">
<td height="6" bgcolor="#d1dceb" class="text" >222</td>
</tr>
</table>服务器段应该怎么写啊
比如
我建立了一个HTMLTABLECELL叫tc
可以tc.bgcolor="#d1dceb"
却不能tc.onMouseDown=……因为HTMLTABLECELL没有onMouseDown这个方法和属性
谁能告诉我怎么能象在HTML那样设置ASP。NET中的空间的客户端行为或者其他类似的情况举个简单的例子:
客户端HTML是这样的
<script language=JavaScript1.2>
<!--
function ForumMenu (Obj) {
if (Obj.style.display=="none") {
Obj.style.display="";
} else {
Obj.style.display="none";
}
}
//-->
</script><table width="100%" height="53" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#B0C4DD">
<tr>
<td height="5" bgcolor="#d1dceb" class="text" onMouseDown="ForumMenu(c111);">
111</td>
</tr>
<tr id="c111" style="Display:'none';">
<td height="6" bgcolor="#d1dceb" class="text" >222</td>
</tr>
</table>服务器段应该怎么写啊
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货