分享

收藏 不显示删除回复显示所有回复显示星级回复显示得分回复 datalist环境下,如何解决JavaScript鼠标经过切换图片

 趋明 2012-03-27
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www./TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www./1999/xhtml" >
<head runat="server">
   
<title>无标题页</title>
<script type="text/javascript">
function showDaTu(src){
document.getElementById(
"ImageShowBig").src=src;
}
</script>
</head>
<body>
   
<form id="form1" runat="server">
       
<br />
       
<asp:Image ID="ImageShowBig" runat="server" Width="300px" Height="300px" />
       
<asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal">
           
<ItemTemplate>
               
<asp:Image ID="ImageSub" width="165px" height="150px"  ImageUrl=' <%# Eval("url").ToString()%>'
                                                style="filter:alpha(opacity=60);"
                                                onMouseOver="JavaScript:this.filters.alpha.opacity='100';showDaTu(this.src)"
                                                onMouseOut="JavaScript:this.filters.alpha.opacity='40';"
                                                runat="server" />

           
</ItemTemplate>
       
</asp:DataList>
   
</form>
</body>
</html>

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约