提问的时候格式化下代码不会吗? 你知道对有强迫症的人来说,看着就烦你知道么!
window.onload=function()//用window的onload事件,窗体加载完毕的时候{
var cmdtype="${requestScope.cmdtype}"
if(cmdtype=='3'){
document.getElementById("tdssh").style.display=""
}else{
return false
}
} <table>
<c:forEach var="list" items="${requestScope.list }" varStatus="cindex">
<tr height="26"
<c:if test="${cindex.count % 2 ==0? true:false }">
style="background-color:#bac9e0"
</c:if>
onmouseover="mouseoverHandler(this)"
onmouseout="mouseoutHandler(this)">
<td id="tdssh" style="text-align:center" nowrap >
<c:if test="${list.sshmode=='0' }"> 普通SHELL模式</c:if>
<c:if test="${list.sshmode=='1' }"> 启动X11</c:if>
<c:if test="${list.sshmode=='2' }"> 远程命令模式</c:if>
<c:if test="${list.sshmode=='3' }">远程命令模式且启动X11</c:if>
</td>
</tr>
</c:forEach>
</table>
<script>$(function() {
$("ul>li").hover(function(){
var me = $(this)
var ind = me.index()
$(".content>div").hide()
var tmp = $(".content>div:eq("+ind+")").show()
$("ul>.bg").css({
left: parseFloat(me.css("width")) * ind + "px"
})
})
})
</script>