datalist实现跑马灯
<table align="center" border="0" cellpadding="0" cellspacing="0" width="750">
<tbody>
<tr>
<td>
<div id="demo" style="overflow: hidden; width: 100%; color: #ffffff">
<table align="left" border="0" cellpadding="0" cellspacing="0" >
<tbody>
<tr>
<td id="demo1" valign="top">
<!--DataList开始-->
<asp:DataList ID="DataList2" runat="server" RepeatColumns="300" RepeatDirection="Horizontal">
<ItemTemplate> <table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td>
<table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="2" class="o_smoke">
<tr>
<td>
<a href='personinfo.aspx?id=<%#Eval("eppid") %>' target='_blank'>
<img border="0" height="120" src='employee/baseinfo/uppic/<%#Eval("pic") %>' title='<%#Eval("empname") %>' width="150" /></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<a href='personinfo.aspx?id=<%# Eval("eppid") %>' target="_blank">
<%#Eval("empname") %>
</a>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
<!--DataList结束-->
</td>
<td id="demo2" valign="top">
</td>
</tr>
</tbody>
</table>
</div>
<script language="JavaScript" src="Common/Script/scrollpic.js"></script>
</td>
</tr>
</tbody>
</table>
<tbody>
<tr>
<td>
<div id="demo" style="overflow: hidden; width: 100%; color: #ffffff">
<table align="left" border="0" cellpadding="0" cellspacing="0" >
<tbody>
<tr>
<td id="demo1" valign="top">
<!--DataList开始-->
<asp:DataList ID="DataList2" runat="server" RepeatColumns="300" RepeatDirection="Horizontal">
<ItemTemplate> <table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td>
<table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="2" class="o_smoke">
<tr>
<td>
<a href='personinfo.aspx?id=<%#Eval("eppid") %>' target='_blank'>
<img border="0" height="120" src='employee/baseinfo/uppic/<%#Eval("pic") %>' title='<%#Eval("empname") %>' width="150" /></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<a href='personinfo.aspx?id=<%# Eval("eppid") %>' target="_blank">
<%#Eval("empname") %>
</a>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
<!--DataList结束-->
</td>
<td id="demo2" valign="top">
</td>
</tr>
</tbody>
</table>
</div>
<script language="JavaScript" src="Common/Script/scrollpic.js"></script>
</td>
</tr>
</tbody>
</table>
浙公网安备 33010602011771号