哥哥们来帮忙 asp~js~div 大家先看一下http://bbs.163.com/右边那个图片的自动播放 我用了那个 只不过图片我改成文字内容了 我现在想加个onmouseover 鼠标移上去就停止 怎么弄 给俺一个新的代码也行 谢谢!!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我的代码 可能有点乱我的代码 可能有点乱<td height="210" width="380" background="images/main_bg5dao.gif"> <%sql="select top 5 * from tongzhi where hidden=1 order by id desc" set rs=conn.execute(sql) if not rs.eof then%><script language="javascript">var nn;nn=1;setTimeout('change_img()',6000);function change_img(){ if(nn>4) nn=1 setTimeout('setFocus1('+nn+')',6000); nn++; tt=setTimeout('change_img()',6000);}function setFocus1(i){ selectLayer1(i);}function selectLayer1(i){ switch(i) { case 1: document.getElementById("focusPic1").style.display="block"; document.getElementById("focusPic2").style.display="none"; document.getElementById("focusPic3").style.display="none"; document.getElementById("focusPic4").style.display="none"; document.getElementById("focusPic5").style.display="none"; break; case 2: document.getElementById("focusPic1").style.display="none"; document.getElementById("focusPic2").style.display="block"; document.getElementById("focusPic3").style.display="none"; document.getElementById("focusPic4").style.display="none"; document.getElementById("focusPic5").style.display="none"; break; case 3: document.getElementById("focusPic1").style.display="none"; document.getElementById("focusPic2").style.display="none"; document.getElementById("focusPic3").style.display="block"; document.getElementById("focusPic4").style.display="none"; document.getElementById("focusPic5").style.display="none"; break; case 4: document.getElementById("focusPic1").style.display="none"; document.getElementById("focusPic2").style.display="none"; document.getElementById("focusPic3").style.display="none"; document.getElementById("focusPic4").style.display="block"; document.getElementById("focusPic5").style.display="none"; break; case 5: document.getElementById("focusPic1").style.display="none"; document.getElementById("focusPic2").style.display="none"; document.getElementById("focusPic3").style.display="none"; document.getElementById("focusPic4").style.display="none"; document.getElementById("focusPic5").style.display="block"; break; }}</script> <div id="focusPic"><div id="focusPic1" style="display: block;"><%tim=rs("tim")s_id=rs("s_id")word=rs("word")%><div align="center" style="width: 380px; height: 30px"><a href="tongzhi_view.asp?id=<%=rs("id")%>" target="_blank"><%=rs("topic")%></a></div> <div align=left style="width: 380px; height: 30px">发布时间:<%=time_type(tim,33)%></a></div><div align=left style="width: 380px; height: 110px"><%=cuted(word,230)%></div><div align=right style="width: 380px; height: 30px"><ul>1<a href="javascript:setFocus1(2);" target="_self">2</a><a href="javascript:setFocus1(3);" target="_self">3</a><a href="javascript:setFocus1(4);" target="_self">4</a><a href="javascript:setFocus1(5);" target="_self">5</a></ul></div></div><%end ifrs.movenextif not rs.eof thentim=rs("tim")word=rs("word")s_id=rs("s_id")%> <div id="focusPic2" style="display: none;"><div align="center" style="width: 380px; height: 30px"><a href="tongzhi_view.asp?id=<%=rs("id")%>" target="_blank"><%=rs("topic")%></a></div><div align=left style="width: 380px; height: 30px">发布时间:<%=time_type(tim,33)%></a></div><div align=left style="width: 380px; height: 110px"><%=cuted(word,230)%></div><div align=right style="width: 380px; height: 30px"><ul><a href="javascript:setFocus1(1);" target="_self">1</a>2<a href="javascript:setFocus1(3);" target="_self">3</a><a href="javascript:setFocus1(4);" target="_self">4</a><a href="javascript:setFocus1(5);" target="_self">5</a></ul></div></div><%end if rs.close set rs=nothing%></div></td> 急!请教Ext.Grid的Column中的这个是什么东西?帮忙看看。 正则表达式求解 这样引用2个JS文件,怎么不行啊? ext4 树的拖拽 js中两个数值相与问题 江湖救急!在线等候!如何将XML文件内元素值付给对应的JS对象内的属性。 怎样隐藏Javascript代码呀??要急死我了 请问怎样可以打开一个比较小的完全没有边框的窗口?谢谢! 自动记住用户名密码 js一个类中如何调用它外部的函数 各位大哥哥,进来帮帮我好吗? <关于javascript 对象问题>
我的代码 可能有点乱
<td height="210" width="380" background="images/main_bg5dao.gif">
<%sql="select top 5 * from tongzhi where hidden=1 order by id desc"
set rs=conn.execute(sql)
if not rs.eof then%>
<script language="javascript">
var nn;
nn=1;
setTimeout('change_img()',6000);
function change_img()
{
if(nn>4) nn=1
setTimeout('setFocus1('+nn+')',6000);
nn++;
tt=setTimeout('change_img()',6000);
}
function setFocus1(i)
{
selectLayer1(i);
}
function selectLayer1(i)
{
switch(i)
{
case 1:
document.getElementById("focusPic1").style.display="block";
document.getElementById("focusPic2").style.display="none";
document.getElementById("focusPic3").style.display="none";
document.getElementById("focusPic4").style.display="none";
document.getElementById("focusPic5").style.display="none";
break;
case 2:
document.getElementById("focusPic1").style.display="none";
document.getElementById("focusPic2").style.display="block";
document.getElementById("focusPic3").style.display="none";
document.getElementById("focusPic4").style.display="none";
document.getElementById("focusPic5").style.display="none";
break;
case 3:
document.getElementById("focusPic1").style.display="none";
document.getElementById("focusPic2").style.display="none";
document.getElementById("focusPic3").style.display="block";
document.getElementById("focusPic4").style.display="none";
document.getElementById("focusPic5").style.display="none";
break;
case 4:
document.getElementById("focusPic1").style.display="none";
document.getElementById("focusPic2").style.display="none";
document.getElementById("focusPic3").style.display="none";
document.getElementById("focusPic4").style.display="block";
document.getElementById("focusPic5").style.display="none";
break;
case 5:
document.getElementById("focusPic1").style.display="none";
document.getElementById("focusPic2").style.display="none";
document.getElementById("focusPic3").style.display="none";
document.getElementById("focusPic4").style.display="none";
document.getElementById("focusPic5").style.display="block";
break;
}
}
</script>
<div id="focusPic">
<div id="focusPic1" style="display: block;">
<%tim=rs("tim")
s_id=rs("s_id")
word=rs("word")
%>
<div align="center" style="width: 380px; height: 30px">
<a href="tongzhi_view.asp?id=<%=rs("id")%>" target="_blank">
<%=rs("topic")%></a></div>
<div align=left style="width: 380px; height: 30px">
发布时间:<%=time_type(tim,33)%></a></div>
<div align=left style="width: 380px; height: 110px"><%=cuted(word,230)%></div>
<div align=right style="width: 380px; height: 30px">
<ul>
1
<a href="javascript:setFocus1(2);" target="_self">2</a>
<a href="javascript:setFocus1(3);" target="_self">3</a>
<a href="javascript:setFocus1(4);" target="_self">4</a>
<a href="javascript:setFocus1(5);" target="_self">5</a>
</ul>
</div>
</div><%end if
rs.movenext
if not rs.eof then
tim=rs("tim")
word=rs("word")
s_id=rs("s_id")%>
<div id="focusPic2" style="display: none;">
<div align="center" style="width: 380px; height: 30px">
<a href="tongzhi_view.asp?id=<%=rs("id")%>" target="_blank"><%=rs("topic")%></a></div>
<div align=left style="width: 380px; height: 30px">
发布时间:<%=time_type(tim,33)%></a></div>
<div align=left style="width: 380px; height: 110px">
<%=cuted(word,230)%></div>
<div align=right style="width: 380px; height: 30px">
<ul>
<a href="javascript:setFocus1(1);" target="_self">1</a>
2
<a href="javascript:setFocus1(3);" target="_self">3</a>
<a href="javascript:setFocus1(4);" target="_self">4</a>
<a href="javascript:setFocus1(5);" target="_self">5</a>
</ul></div>
</div>
<%end if
rs.close
set rs=nothing%>
</div>
</td>