zoukankan      html  css  js  c++  java
  • 图片预览功能

    
    
      <td align="left">
                            <img style='width20pxheight16pxcursorpointer;' onmouseover='showClient(this);'
                                src="/manage/Files/HeatPump/<%#Eval("Smallpic") %>onmouseout='$("#divClient").hide();'
                                onerror='this.src="/images/img.gif"; this.style.width=16' />
                            <img id="divClient" style="positionabsolutez-index9999displaynoneborder1px solid;
                                border-colorGraypadding1pxwidth500pxheight400px;" />
                        </td>



    <script>
     function showClient(ele) {
                if (ele.src.toLowerCase().indexOf("img.gif") == -1) {
                    var X = $(ele).offset().top - 3;
                    var Y = $(ele).offset().left + 20;
                    $("#divClient").attr("src", ele.src).show().css("left", Y).css("top", X);
                }
            }

    </script>
  • 相关阅读:
    切蛋糕
    STL----deque
    Java语法 [常识1]
    SQL Server 数据库基础编程
    SQL Server 数据库基础编程
    SQL Server 索引和视图
    SQL Server 索引和视图
    SQL Server 事务、异常和游标
    SQL Server 事务、异常和游标
    SQL Server 存储过程
  • 原文地址:https://www.cnblogs.com/ft-Pavilion/p/4798323.html
Copyright © 2011-2022 走看看