asp.net小问题 这是一个导航,有6个标题,鼠标移入时变色,移开时灰色,我都设置好了,为什么不变呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 CSS JS文件跟一下Alert出来 简化的话用JQuery <table width=200> <tr> <td bgcolor="#738278" style="cursor:hand" onMouseOver="this.style.backgroundColor='red'" onMouseOut="this.style.background='#738278'">移過來 </td> </tr></table> JavaScript:onmousemove="this.style.class=''" 应该是onmouseover="this.style.backgroundColor='#FFFFFF'"或onmouseout="this.style.backgroundColor:Red;" <script language="javascript" type="text/javascript"> var slef = ""; var num = Math.round(Math.random() * 5); function ajaxTab(index) { slef = setTimeout("wait(" + index + ")", 500); } $(function load() { ajaxTab(num); }) //等待 function wait(index) { $.ajaxTab({ Content: '#tabContent > div.contentForAjaxTab', Content1: '#showImg > li.homeImg', Index: index }); } function clearThread() { clearTimeout(slef); document.getElementById("lab1").style.background="#868686"; } </script><table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr> <td id="lab1" style="display: block; background-color:#868686;" onmouseover="javascript:ajaxTab(0);" onmouseout="clearThread()" class="bgcolor('lab1')"> <h1 class="text_small text_home"> <a style="color: white; font-weight: bold" id="CPH1_ctl01_hlEC" class="HLItem" href="#"> 数据采集卡</a></h1> </td> <td id="lab2" style="display: block; background-color:#868686;" onmouseover="javascript:ajaxTab(1);" onmouseout="clearThread()" class="bgcolor(lab2)"> <h1 class="text_small text_home"> <a style="color: white; font-weight: bold" id="CPH1_ctl01_hlEA" class="HLItem" href="#"> 全隔离调理模块</a></h1> </td> <td id="lab3" style="display: block; background-color:#868686;" onmouseover="javascript:ajaxTab(2);" onmouseout="clearThread()"> <h1 class="text_small text_home"> <a style="color: white; font-weight: bold" id="CPH1_ctl01_hlApplied" class="HLItem" href="#">外围端子板</a></h1> </td> <td id="lab4" style="display: block; background-color:#868686;" onmouseover="javascript:ajaxTab(3);" onmouseout="clearThread()"> <h1 class="text_small text_home"> <a style="color: white; font-weight: bold" id="CPH1_ctl01_hlINC" class="HLItem" href="#"> HMI工业电脑</a></h1> </td> <td style="width: 150px; border-right: 0px; display: block; background-color:#868686;" id="lab5" onmouseover="javascript:ajaxTab(4);" onmouseout="clearThread()"> <h1 class="text_small text_home"> <a style="color: white; font-weight: bold" id="CPH1_ctl01_HyperLink1" class="HLItem" href="http://www.advantech.com.cn/ais/">远程IO模块/多串口卡</a></h1> </td> </tr> </tbody></table> 这个小特效完全可以用css,不需要写一点JS. 看你的JS代码还有你的CSS设置 关于页面弹出窗口后页面格式问题 “转到定义”不能用? 请教如何设置datagrid中某行颜色变化 如何进行并发测试?大家是如何处理并发的? 如何用缓冲将要显示的页面在客户端一点一点的显示出来? 怎么在ASP.NET中使用Microsoft Word文档?有谁有源代码??谢谢 关于日期的加减问题。。。在线等待 gridview查询的问题 NetVideoActiveX23.ocx控件如何安装 网页中如何设置焦点??? mvc 报错 求教:string类型可以看做为char类型的数组.怎么理解这个啊?
<tr>
<td bgcolor="#738278" style="cursor:hand" onMouseOver="this.style.backgroundColor='red'" onMouseOut="this.style.background='#738278'">
移過來
</td>
</tr>
</table>
onmouseout="this.style.backgroundColor:Red;"
var slef = "";
var num = Math.round(Math.random() * 5);
function ajaxTab(index) {
slef = setTimeout("wait(" + index + ")", 500);
}
$(function load() {
ajaxTab(num);
})
//等待
function wait(index) {
$.ajaxTab({
Content: '#tabContent > div.contentForAjaxTab',
Content1: '#showImg > li.homeImg', Index: index
});
}
function clearThread() {
clearTimeout(slef);
document.getElementById("lab1").style.background="#868686";
}
</script>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td id="lab1" style="display: block; background-color:#868686;" onmouseover="javascript:ajaxTab(0);" onmouseout="clearThread()" class="bgcolor('lab1')">
<h1 class="text_small text_home">
<a style="color: white; font-weight: bold" id="CPH1_ctl01_hlEC" class="HLItem" href="#">
数据采集卡</a></h1>
</td>
<td id="lab2" style="display: block; background-color:#868686;" onmouseover="javascript:ajaxTab(1);" onmouseout="clearThread()" class="bgcolor(lab2)">
<h1 class="text_small text_home">
<a style="color: white; font-weight: bold" id="CPH1_ctl01_hlEA" class="HLItem" href="#">
全隔离调理模块</a></h1>
</td>
<td id="lab3" style="display: block; background-color:#868686;" onmouseover="javascript:ajaxTab(2);" onmouseout="clearThread()">
<h1 class="text_small text_home">
<a style="color: white; font-weight: bold" id="CPH1_ctl01_hlApplied" class="HLItem"
href="#">外围端子板</a></h1>
</td>
<td id="lab4" style="display: block; background-color:#868686;" onmouseover="javascript:ajaxTab(3);" onmouseout="clearThread()">
<h1 class="text_small text_home">
<a style="color: white; font-weight: bold" id="CPH1_ctl01_hlINC" class="HLItem" href="#">
HMI工业电脑</a></h1>
</td>
<td style="width: 150px; border-right: 0px; display: block; background-color:#868686;" id="lab5" onmouseover="javascript:ajaxTab(4);"
onmouseout="clearThread()">
<h1 class="text_small text_home">
<a style="color: white; font-weight: bold" id="CPH1_ctl01_HyperLink1" class="HLItem"
href="http://www.advantech.com.cn/ais/">远程IO模块/多串口卡</a></h1>
</td>
</tr>
</tbody>
</table>