jquery滑鼠滑動顯示詳情應用樣本

來源:互聯網
上載者:User

 本文樣本要為大家實現的效果是滑鼠滑動,顯示詳情,代碼很簡潔,很適合學習

效果如:  實現的代碼很少,很簡潔,可參考學習 代碼如下:<script type="text/javascript"> jQuery(document).ready(function () { ShowImage1(); }); var ShowImage1 = function () { $(".show_box1 .show_box_dd").hover(function (e) { $(".show_box1 .phover").hide(); $(".show_box1 .show_box_dd").show(); $(this).hide(); $(this).siblings().show(); }, function () { }); }; </script>  代碼如下:<pre code_snippet_id="169406" snippet_file_name="blog_20140124_1_9547095" name="code" class="javascript"><div style="border-left: none" class="module-box1 orangeback show_box1"></pre> <pre></pre> <pre code_snippet_id="169406" snippet_file_name="blog_20140124_2_3723790" name="code" class="html"> <dl> <div class="module-tit"> <span class="store-name">好評度排名</span> </div> <div> <dd style="padding: 15px 0 10px 15px" class="phover"> <em class="current">1</em><img class="jiupic" src="images/jiu.gif" width="100" height="100" /> <span class="pname"><a href="#" target="_blank">五糧液</a> </span><span class="pinpingzhe">品評評分:</span><span class="fenshu">8.6分</span> <div class="jindu"><span class="jindutiao"><em class="fen0"></em></span></div> </dd> <dd class="show_box_dd" style="display: none;"> <em>1</em><a href="#" target="_blank">五糧液</a><span class="rank">9分</span> </dd> </div> <div> <dd style="padding: 15px 0 10px 15px; display: none;" class="phover"> <em class="current">2</em><img class="jiupic" src="images/jiu.gif" width="100" height="100" />  <span class="pname"><a href="#" target="_blank">瀘州老窖</a> </span><span class="pinpingzhe">品評評分:</span><span class="fenshu">8.6分</span> <div class="jindu"><span class="jindutiao"><em class="fen0"></em></span></div> </dd> <dd class="show_box_dd"> <em>2</em><a href="#" target="_blank">瀘州老窖</a><span class="rank">9分</span> </dd> </div> <div> <dd style="padding: 15px 0 10px 15px; display: none;" class="phover"> <em class="current">3</em><img class="jiupic" src="images/jiu.gif" width="100" height="100" />  <span class="pname"><a href="#" target="_blank">金六福</a> </span><span class="pinpingzhe">品評評分:</span><span class="fenshu">8.6分</span> <div class="jindu"><span class="jindutiao"><em class="fen0"></em></span></div> </dd> <dd class="show_box_dd"> <em>3</em><a href="#" target="_blank">金六福</a><span class="rank">9分</span> </dd> </div>   </dl> </div></pre> <pre></pre>  

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.