Jquery mouse slides to show detailed application examples
- 2020-03-30 01:29:12
- OfStack
The effect is as follows:
< img SRC = "border = 0 / / files.jb51.net/file_images/article/201401/20140124153444.jpeg? 2014024153515 ">
Implementation of the code is very small, very concise, can refer to the study
< img SRC = "border = 0 / / files.jb51.net/file_images/article/201401/20140124153444.jpeg? 2014024153515 ">
Implementation of the code is very small, very concise, can refer to the study
<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"> Favorable rating ranking </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"> Wu liang ye </a> </span><span class="pinpingzhe"> Evaluation score: </span><span class="fenshu">8.6 points </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"> Wu liang ye </a><span class="rank">9 points </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"> Luzhou laojiao (a kind of daqu liquor) </a> </span><span class="pinpingzhe"> Evaluation score: </span><span class="fenshu">8.6 points </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"> Luzhou laojiao (a kind of daqu liquor) </a><span class="rank">9 points </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"> Jin Liufu </a> </span><span class="pinpingzhe"> Evaluation score: </span><span class="fenshu">8.6 points </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"> Jin Liufu </a><span class="rank">9 points </span>
</dd>
</div>
</dl>
</div></pre>
<pre></pre>