admin 发表于 2014-9-8 12:58:22

Discuz图片效果jquery hover鼠标悬停遮罩显示

效果预览:


视频教程:          http://www.tudou.com/programs/view/IjmbP8EX1R0/
教程中所使用到的编辑器:Notepad++ 一款非常有特色的编辑器
http://www.dz7.com.cn/discuz-84-1-1.html




素材使用方法:


[*]下载素材附件,将附件解压,把DZ7整个文件夹上传至网站跟目录!
[*]附件**** Hidden Message *****
[*]请将下面的代码全部复制到DIY模板里面,然后设置图片的宽度:262   高度:148
[*]保存即可!



本素材由DZ起点网独家提供,转载请说明出处!
DZ起点网 www.dz7.com.cn   专注于Discuz!               
               
从以下位置开始复制      


<style type="text/css">
/* case */
.case{margin:0 auto;width:auto;}
.case li{float:left;display:inline;margin-right:22px;margin-left:22px;width:275px;height:215px; background:url(dz7/images/bg_case_f.png) center bottom no-repeat;position:relative;}
.case li .case_w{display:block;width:262px;height:145px;padding:20px;background:url(dz7/images/bg_case.png) no-repeat;position:absolute;bottom:14px;left:0px;}
.case li .case_w .fire{background:#000;opacity:0.5;filter:alpha(opacity=50);position:absolute;top:20px;left:20px;width:262px;height:148px;z-index:2;display:none; text-align:center; }
.case li .case_w.x,.case li .case_w.y{width:61px;height:61px;top:60px;position:absolute;z-index:3;display:none;}
.case li .case_w.x{background:url(dz7/images/zoom-icon.png); left: 50px;}
.case li .case_w.y{background:url(dz7/images/readmore-icon.png);right:50px;}
</style>
<script type="text/javascript" src="dz7/js/jq-1.7.2.min.js"></script>
<ul class="case">

      <li>
                <div class="case_w">
                        <img alt="{title}" width="{picwidth}" height="{picheight}"src="{pic}">
                        <div class="fire"></div>
                        <a href="{url}" class="x"></a>
                        <a href="{url}" class="y"></a>
                </div>
      </li>

</ul>
<script type="text/javascript">
jQuery.noConflict();
var jq=jQuery;
jq(function(){
      jq(".case li").hover(function(){
                jq('.case_w',this).stop().animate({"bottom":"30px"},400);      
                jq(".x",this).stop().css({'left':'50px'}).animate({'left':"80px"},400).show();
                jq(".y",this).stop().css({'right':'50px'}).animate({'right':"80px"},400).show();
                jq('.fire',this).show();
      },function(){
                jq('.case_w',this).stop().animate({"bottom":"14px"},400);
                jq('.fire, .x, .y',this).hide();
      });      
});
</script>
</div>





zhao789110 发表于 2015-1-24 16:48:07

强力支持,找了好久才找见

聊仁 发表于 2015-1-10 08:29:07

DIY简洁的有序列表素材DIY简洁的有序列表素材DIY简洁的有序列表素材

q2374819613 发表于 2015-1-5 22:15:41

吸收学习 大有帮助啊

jinoem 发表于 2014-12-26 15:29:32

<div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_taobao" data-cmd="taobao" title="分享到我的淘宝"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_twi" data-cmd="twi" title="分享到Twitter"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="#" class="bds_copy" data-cmd="copy" title="分享到复制网址"></a></div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"1","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},"image":{"viewList":["qzone","tsina","tqq","taobao","renren","twi","weixin","copy"],"viewText":"分享到:","viewSize":"32"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","taobao","renren","twi","weixin","copy"]}};with(document)0[(getElementsByTagName('head')||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>

最初的命运 发表于 2014-12-24 14:53:55

吸收学习 大有帮助啊

技术帮助 发表于 2014-12-23 19:41:33

曾哥 发表于 2014-12-19 21:02
这个效果挺好,就是悬停时上面两个按钮没多大作用,都是指向同一个链接,能改成一个按钮么或改成显示标题也 ...

可以自己尝试去编辑

525919 发表于 2014-12-23 19:37:42

谢谢   我把这个也学会了

曾哥 发表于 2014-12-19 21:02:50

这个效果挺好,就是悬停时上面两个按钮没多大作用,都是指向同一个链接,能改成一个按钮么或改成显示标题也成

曾哥 发表于 2014-12-18 14:36:32

好东西哦搞来看看

1234546 发表于 2014-12-17 21:18:26

r鼠标悬停遮罩显示

小新 发表于 2014-9-10 23:41:33

kankan ............

晓宇 发表于 2014-9-14 21:59:22

吸收学习 大有帮助啊

joechou 发表于 2014-9-16 09:52:16

:lol:$:lol:lol

晓宇 发表于 2014-9-16 23:12:15

本帖最后由 晓宇 于 2014-9-16 23:15 编辑

搞定了 、

明子 发表于 2014-9-27 13:45:58

支持一下 :D

wdmxwdfox 发表于 2014-10-6 12:02:19

感谢群主啊,谢谢分享

mastudy 发表于 2014-10-6 18:13:28

谢谢分享谢谢分享谢谢分享谢谢分享谢谢分享谢谢分享谢谢分享谢谢分享

wuyalun 发表于 2014-10-8 18:26:49

强力支持,找了好久才找见

黎瑶 发表于 2014-10-9 09:44:04

{:4_90:}{:4_90:}{:4_90:}
页: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: Discuz图片效果jquery hover鼠标悬停遮罩显示