jquery 鼠标滑动显示详情应用示例

效果如下图:

jquery 鼠标滑动显示详情应用示例

 
实现的代码很少,很简洁,可参考学习

复制代码 代码如下:


<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"><div></pre>
<pre></pre>
<pre code_snippet_id="169406" snippet_file_name="blog_20140124_2_3723790"> <dl>
<div>
<span>好评度排名</span>
</div>
<div>
<dd>
<em>1</em><img src="https://www.jb51.net/images/jiu.gif" />
<span><a href="#" target="_blank">五粮液</a> </span><span>品评评分:</span><span>8.6分</span>
<div><span><em></em></span></div>
</dd>
<dd>
<em>1</em><a href="#" target="_blank">五粮液</a><span>9分</span>
</dd>
</div>
<div>
<dd>
<em>2</em><img src="https://www.jb51.net/images/jiu.gif" />

<span><a href="#" target="_blank">泸州老窖</a> </span><span>品评评分:</span><span>8.6分</span>
<div><span><em></em></span></div>
</dd>
<dd>
<em>2</em><a href="#" target="_blank">泸州老窖</a><span>9分</span>
</dd>
</div>
<div>
<dd>
<em>3</em><img src="https://www.jb51.net/images/jiu.gif" />

<span><a href="#" target="_blank">金六福</a> </span><span>品评评分:</span><span>8.6分</span>
<div><span><em></em></span></div>
</dd>
<dd>
<em>3</em><a href="#" target="_blank">金六福</a><span>9分</span>
</dd>
</div>


</dl>
</div></pre>
<pre></pre>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wdyssg.html