日期:2014-05-18 浏览次数:20461 次
<html xmlns="http://www.w3.org/1999/xhtml" > <body onload="init()"> <form id="Form1" method="post" runat="server" clientidmodel="static" > <FONT face="宋体"> <%--<a href="www.baidu.com" ">sss</a>--%> <asp:DataList id="DataList1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 0px" runat="server" RepeatDirection="Horizontal" ShowHeader="False" ShowFooter="False" RepeatLayout="Flow" > <ItemTemplate> <asp:Image ID="Image1" runat="server" Height="16px" ></asp:Image> <asp:HyperLink id="HyperLink1" runat="server">[HyperLink1]</asp:HyperLink> </ItemTemplate></asp:DataList> </FONT> <script> function init() { var hy=document.getElementById("<%=HyperLink1.ClientID%>"); alert(hy); } </script> </form> </body> </html>