62,073
社区成员
发帖
与我相关
我的任务
分享
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WUCNewGo.ascx.cs" Inherits="user_WUCNewGo" %>
<div id=icefable1>
<asp:GridView ID="GridViewNew1" runat="server" ShowFooter="false" ShowHeader="false" AllowPaging="false" AllowSorting="false" BorderWidth="0" Width="100%" AutoGenerateColumns="false" >
<Columns>
<asp:TemplateField>
<ItemTemplate>
<table width="100%" border="0" style="text-align:center;font-family:宋体" cellpadding="0" cellspacing="0">
<tr>
<td style="width:5%;"><span style="color:black">*</span></td>
<td style="width:95%" align="left"><a style="color:#004B80" href="<%# Eval("IPADRESS")%>" target="_blank" onmousemove="this.style.textDecoration='underline';this.style.color='blue'" onmouseout="this.style.textDecoration='none';this.style.color='#004B80';"><%#(Eval("NAME"))%></a></td>
</tr>
</table>
</ItemTemplate>
<%-- <ItemStyle HorizontalAlign="left" Height="15" BorderWidth="0"/>--%>
</asp:TemplateField>
</Columns>
</asp:GridView>
<script type="text/javascript">
marqueesHeight=105;
stopscroll=false;
with(icefable1)
{
style.width=313;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
preTop=0; currentTop=marqueesHeight; stoptime=0;
icefable1.innerHTML+=icefable1.innerHTML;
function init_srolltext()
{
icefable1.scrollTop=0;
setInterval("scrollUp()",1);
}init_srolltext();
function scrollUp()
{
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==marqueesHeight+1)
{
stoptime+=1;
currentTop-=1;
if(stoptime==600)
{
currentTop=0;
stoptime=0;
}
}
else
{
preTop=icefable1.scrollTop;
icefable1.scrollTop+=1;
if(preTop==icefable1.scrollTop){
icefable1.scrollTop=marqueesHeight;
icefable1.scrollTop+=1;
}
}
}
init_srolltext();
</script>
</div>