87,909
社区成员
发帖
与我相关
我的任务
分享
<table id="sItem" style="width: 230px;height: 140px; margin-right: auto; margin-left: auto;">
<asp:Repeater ID="JxtdRepeater2" runat="server">
<ItemTemplate>
<tr style="height: 125px">
<td colspan="2">
<table cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td style="width: 100px" align="center" ><img src=<%# Eval("Item3")%> height="120" width="84" /></td>
<td style="line-height: 150%" ></td>
</tr>
</table>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
<script type="text/javascript" src="jq.js"></script>
<script type="text/javascript">
$(function () {
var trs = $('#sItem > tbody > tr'), idx = 0;
trs.filter(':gt(' + idx + ')').hide(); //隐藏其他行
function animate() {
idx++;
if (idx >= trs.length) idx = 0;
trs.hide().eq(idx).fadeIn(300);
}
setInterval(animate, 3000);
});
</script>
<table id="sItem" style="width: 230px;height: 140px; margin-right: auto; margin-left: auto;">
<tr style="height: 125px">
<td colspan="2">
<table cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td style="width: 100px" align="center" ><img src="map.gif" height="120" width="84" /></td>
<td style="line-height: 150%" ></td>
</tr>
</table>
</td>
</tr>
<tr style="height: 125px">
<td colspan="2">
<table cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td style="width: 100px" align="center" ><img src="adsl.jpg" height="120" width="84" /></td>
<td style="line-height: 150%" ></td>
</tr>
</table>
</td>
</tr>
<tr style="height: 125px">
<td colspan="2">
<table cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td style="width: 100px" align="center" ><img src="map.gif" height="120" width="84" /></td>
<td style="line-height: 150%" ></td>
</tr>
</table>
</td>
</tr><tr style="height: 125px">
<td colspan="2">
<table cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td style="width: 100px" align="center" ><img src="adsl.jpg" height="120" width="84" /></td>
<td style="line-height: 150%" ></td>
</tr>
</table>
</td>
</tr>
</table>
<tr style="height: 125px;">
<td colspan="2">
<div id="marquee5">
<ul>
<asp:Repeater ID="JxtdRepeater2" runat="server">
<ItemTemplate>
<li>
<table cellpadding="0" cellspacing="0" style="width: 220px">
<tr>
<td style="width: 100px" align="center" ><img src=<%# Eval("Item3")%> height="120" width="84" /></td>
<td style="width: 120px;line-height: 150%">姓名:<%# Eval("Item2")%><br><%# Eval("Item4").ToString.Replace(vbCrLf, "<br>")%></td>
</tr>
</table>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
</div>
</td>
</tr>
#marquee5 {width:220px;height:125px; overflow:hidden;}
#marquee5 ul
{
padding: 0px;
float: left;
list-style: none;
width: 220px;
margin: 0px;
}
#marquee5 ul li
{
margin: 0px;
float: left;
width: 220px;
height: 125px;
padding: 0px;
text-align: left;
display: inline;
}
$(function () {
//一次滚动一屏
$('#marquee5').kxbdSuperMarquee({
isEqual: false,
distance: 125,
time: 4,
//btnGo:{up:'#goU',down:'#goD'},
direction: 'up'
});
});