jQuery點擊圖片彈出大圖遮罩層


 

 

 

 

 

 

使用jQuery插件HoverTreeShow彈出遮罩層顯示大圖

效果體驗:
http://hovertree.com/texiao/hovertreeshow/

在 開發HoverTreeTop項目的產品展示功能過程中,因為要把產品圖片的大圖顯示給用戶看,就使用jQuery制作了一個插 件:HoverTreeShow ,使用該插件可以很方便的彈出圖片的大圖,已經運用在項目中了,除了上面鏈接的示例外,HoverTreeTop項目的產品展示也是一個實例,請訪問鏈 接:http://hovertree.com/top/htpro/5dbcb599663b3397.htm

HoverTreeTop是一個ASP.NET開源項目,用於企業網站建設,里面也包含HoverTreeShow插件的源碼,有需要的朋友可以下載源碼:http://hovertree.com/h/bjaf/hv6cqe5n.htm

彈出層后,可以點擊右上角的 X 按鈕關閉,也可以雙擊頁面關閉層。

代碼如下:

復制代碼
復制代碼
復制代碼
復制代碼
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>使用HoverTreeShow插件彈出圖片大圖層_何問起</title><base target="_blank" />
    <meta charset="utf-8" />
    <link href="http://hovertree.com/texiao/hovertreeshow/hovertreeshow.css" rel="stylesheet" />
    <script src="http://down.hovertree.com/jquery/jquery-1.12.1.min.js"></script>
    <style>#hovertreeshow{
    width:400px;height :400px;overflow:scroll;margin:5px auto;}
    #hovertreeshow img{max-height:100%;}
    #headhovertree{margin:5px auto;width:400px;}a{color:blue;}
    </style>
</head>
<body>
    <div id="headhovertree"><h3>使用HoverTreeShow插件彈出圖片大圖層</h3>
    請點擊下方圖片,將彈出遮罩層顯示圖片原圖。<a href="http://hovertree.com/h/bjag/o46xlsnm.htm">說明</a> <a href="http://hovertree.com">首頁</a></div>
    <div id="hovertreeshow" class="hovertreeshow">
        <img src='http://hovertree.com/hvtimg/bjafjd/hs6oi257.jpg' /><img src='http://hovertree.com/hvtimg/bjafjd/070joeh7.jpg' />
        <img src="http://hovertree.com/hvtimg/201512/o9qashmi.gif" />
    </div>
    <div style="height:600px;width:100%"></div>
    <script src="http://hovertree.com/texiao/hovertreeshow/hovertreeshow.js"></script>
</body>
</html>
復制代碼
復制代碼
復制代碼
復制代碼

更多特效:http://www.cnblogs.com/jihua/p/webfront.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM