lishaozhang image的多张图片如何切换 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 要用到JS的;var NowImg = 1;var bStart = 0;var bStop =0;function fnToggle() { var next = NowImg + 1; if(next == MaxImg+1) { NowImg = MaxImg; next = 1; } if(bStop!=1) { if(bStart == 0) { bStart = 1; setTimeout('fnToggle()', 4000); return; } else { oTransContainer.filters[0].Apply(); document.images['oDIV'+next].style.display = ""; document.images['oDIV'+NowImg].style.display = "none"; oTransContainer.filters[0].Play(duration=2); if(NowImg == MaxImg) NowImg = 1; else NowImg++; } setTimeout('fnToggle()', 4000); }}function toggleTo(img){ bStop=1; if(img==1) { document.images['oDIV1'].style.display = ""; document.images['oDIV2'].style.display = "none"; document.images['oDIV3'].style.display = "none"; document.images['oDIV4'].style.display = "none"; } else if(img==2) { document.images['oDIV2'].style.display = ""; document.images['oDIV1'].style.display = "none"; document.images['oDIV3'].style.display = "none"; document.images['oDIV4'].style.display = "none"; } else if(img==3) { document.images['oDIV3'].style.display = ""; document.images['oDIV1'].style.display = "none"; document.images['oDIV2'].style.display = "none"; document.images['oDIV4'].style.display = "none"; } else if(img==4) { document.images['oDIV4'].style.display = ""; document.images['oDIV1'].style.display = "none"; document.images['oDIV2'].style.display = "none"; document.images['oDIV3'].style.display = "none"; }}Html页面<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题文档</title><SCRIPT src="js/article.js"></SCRIPT><link href="css/css.css" rel="stylesheet" type="text/css"></head><body><table width="312" border="0" align="center" cellpadding="0" cellspacing="0" class="solidbox"> <tr> <td width="312" height="312" align="center"><TABLE border=0 align="center" cellPadding=0 cellSpacing=0> <TBODY> <TR> <TD><DIV id=oTransContainer style="FILTER: progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=0, motion='forward'); WIDTH: 220px; HEIGHT: 194px"><A href="http://www.webkkk.com/sygj/ggdm.htm" target=_blank><IMG id=oDIV1 style="DISPLAY: yes;" height=300 src="images/01.jpg" width=300 border=0></A><A href="http://www.webkkk.com/sygj/ggdm.htm" target=_blank><IMG id=oDIV2 style="DISPLAY: none;" height=300 src="images/02.jpg" width=300 border=0></A><A href="http://www.webkkk.com/sygj/ggdm.htm" target=_blank><IMG id=oDIV3 style="DISPLAY: none;" height=300 src="images/03.jpg" width=300 border=0></A><A href="http://www.webkkk.com/sygj/ggdm.htm" target=_blank><IMG id=oDIV4 style="DISPLAY: none;" height=300 src="images/04.jpg" width=300 border=0></A></DIV> </TD> </TR> </TBODY> </TABLE></td> </tr> <tr> <td height="22" align="right" valign="top"><script>var MaxImg = 4; fnToggle();</script> <TABLE cellSpacing=1 cellPadding=0 width=110 border=0> <TBODY> <TR> <TD width=26><A href="javascript:toggleTo(1)"><IMG height=15 src="images/s_1.gif" width=17 border=0></A></TD> <TD width=26><A href="javascript:toggleTo(2)"><IMG height=15 src="images/s_2.gif" width=17 border=0></A></TD> <TD width=26><A href="javascript:toggleTo(3)"><IMG height=15 src="images/s_3.gif" width=17 border=0></A></TD> <TD width=27><A href="javascript:toggleTo(4)"><IMG height=15 src="images/s_4.gif" width=17 border=0></A></TD> </TR> </TBODY> </TABLE></td> </tr></table></body></html> gridview刷新 asp.net 传上虚拟主机后的一个错误,居然显示我本地硬盘的路径 关于asp.net对象编程 使用XSLT转换XML时,如何给属性赋值 高手来改错 asp.net 2.0 读取web.config问题 Nhibernate中一对多的问题(快来看一下呀,大哥门) 很纠结的一个问题。关于提示框的 向多表插入 牛人来找茬! 如何把数据库里的图片读出来,不知道长度,类型,显示出来? 影响网页访问速度因素有那些 [ ASP.NET 发布后首页服务器控件需提交两次
var NowImg = 1;
var bStart = 0;
var bStop =0;function fnToggle()
{
var next = NowImg + 1; if(next == MaxImg+1)
{
NowImg = MaxImg;
next = 1;
}
if(bStop!=1)
{ if(bStart == 0)
{
bStart = 1;
setTimeout('fnToggle()', 4000);
return;
}
else
{
oTransContainer.filters[0].Apply(); document.images['oDIV'+next].style.display = "";
document.images['oDIV'+NowImg].style.display = "none"; oTransContainer.filters[0].Play(duration=2); if(NowImg == MaxImg)
NowImg = 1;
else
NowImg++;
}
setTimeout('fnToggle()', 4000);
}
}
function toggleTo(img)
{
bStop=1;
if(img==1)
{
document.images['oDIV1'].style.display = "";
document.images['oDIV2'].style.display = "none";
document.images['oDIV3'].style.display = "none";
document.images['oDIV4'].style.display = "none";
}
else if(img==2)
{
document.images['oDIV2'].style.display = "";
document.images['oDIV1'].style.display = "none";
document.images['oDIV3'].style.display = "none";
document.images['oDIV4'].style.display = "none";
}
else if(img==3)
{
document.images['oDIV3'].style.display = "";
document.images['oDIV1'].style.display = "none";
document.images['oDIV2'].style.display = "none";
document.images['oDIV4'].style.display = "none";
}
else if(img==4)
{
document.images['oDIV4'].style.display = "";
document.images['oDIV1'].style.display = "none";
document.images['oDIV2'].style.display = "none";
document.images['oDIV3'].style.display = "none";
}}
Html页面
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<SCRIPT src="js/article.js"></SCRIPT>
<link href="css/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="312" border="0" align="center" cellpadding="0" cellspacing="0" class="solidbox">
<tr>
<td width="312" height="312" align="center"><TABLE border=0 align="center" cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD><DIV id=oTransContainer
style="FILTER: progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=0, motion='forward'); WIDTH: 220px; HEIGHT: 194px"><A
href="http://www.webkkk.com/sygj/ggdm.htm"
target=_blank><IMG id=oDIV1
style="DISPLAY: yes;"
height=300 src="images/01.jpg"
width=300 border=0></A><A
href="http://www.webkkk.com/sygj/ggdm.htm"
target=_blank><IMG id=oDIV2
style="DISPLAY: none;"
height=300 src="images/02.jpg"
width=300 border=0></A><A
href="http://www.webkkk.com/sygj/ggdm.htm"
target=_blank><IMG id=oDIV3
style="DISPLAY: none;"
height=300 src="images/03.jpg"
width=300 border=0></A><A
href="http://www.webkkk.com/sygj/ggdm.htm"
target=_blank><IMG id=oDIV4
style="DISPLAY: none;"
height=300 src="images/04.jpg"
width=300 border=0></A></DIV>
</TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
<tr>
<td height="22" align="right" valign="top"><script>var MaxImg = 4; fnToggle();</script>
<TABLE cellSpacing=1 cellPadding=0 width=110
border=0>
<TBODY>
<TR>
<TD width=26><A href="javascript:toggleTo(1)"><IMG height=15
src="images/s_1.gif" width=17
border=0></A></TD>
<TD width=26><A href="javascript:toggleTo(2)"><IMG height=15
src="images/s_2.gif" width=17
border=0></A></TD>
<TD width=26><A href="javascript:toggleTo(3)"><IMG height=15
src="images/s_3.gif" width=17
border=0></A></TD>
<TD width=27><A href="javascript:toggleTo(4)"><IMG height=15
src="images/s_4.gif" width=17
border=0></A></TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
</table>
</body>
</html>