jQuery鼠标悬停弹出遮罩显示按钮效果



97 386 129



特效描述:jQuery 鼠标悬停 弹出遮罩 显示按钮效果,jQuery鼠标悬停弹出遮罩显示按钮效果

代码结构

1. 引入CSS

<link href="css/ke.css" type="text/css" rel="stylesheet" />

2. 引入JS

<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery.easing.1.3.js" type="text/javascript"></script>
<script src="js/jquery.zalki_hover_img.min-0.2.js" type="text/javascript"></script>

3. HTML代码

<div id="container">
  <div class="main_box user_style1" data-hipop="one">
    <img src="images/1.jpg"> <a href="#" class="popup"> </a></div>
  <div class="main_box user_style2" data-hipop="two">
    <img src="images/2.jpg"> <a href="#" class="popup"> </a><a href="#" class="popup2"></a></div>
  <div class="main_box user_style3" data-hipop="one-horizontal">
    <img src="images/3.jpg"> <a href="#" class="popup"> BUY</a> </div>
  <div class="main_box user_style4" data-hipop="two-horizontal">
    <img src="images/4.jpg"> <a href="#" class="popup"> </a><a href="#" class="popup2"></a></div>
  <div class="main_box user_style5" data-hipop="text_content">
    <img src="images/5.jpg" title alt="Img preview">
    <p class="textTitle"> Title Here </p>
    <p class="textBox">
      Lorem ipsum dolor sit amet, consectetur adipiscing 
      elit. Aliquam vel mauris orci, nec lobortis sem. Ut urna dui, vehicula vel 
      gravida non, egestas nec eros. Vivamus euismod, erat quis lobortis ullamcorper, 
      libero justo hendrerit velit, in ornare erat ipsum scelerisque nisl. Etiam 
      pharetra sodales dui, nec dignissim nisi adipiscing vel. Integer luctus 
      mi elementum mi ullamcorper eu varius enim rutrum. Morbi gravida dolor eu 
      leo dictum vestibulum. Lorem ipsum dolor sit amet, consectetur adipiscing 
      elit. Aliquam vel mauris orci, nec lobortis sem. Ut urna dui, vehicula vel 
      gravida non, egestas nec eros. <a href="#">Read More</a>
    </p>
  </div>
  <div class="main_box user_style6" data-hipop="text_content">
    <img src="images/6.jpg" title alt="Img preview">
    <p class="textTitle"> Title Here </p>
    <p class="textBox">
      Lorem ipsum dolor sit amet, consectetur adipiscing 
      elit. Aliquam vel mauris orci, nec lobortis sem. Ut urna dui, vehicula vel 
      gravida non, egestas nec eros. Vivamus euismod, erat quis lobortis ullamcorper, 
      libero justo hendrerit velit, in ornare erat ipsum scelerisque nisl. <a href="#">Link</a>
    </p>
  </div>
  <div class="main_box user_style11" data-hipop="text_content2">
    <img src="images/11.jpg" title alt="Img preview">
    <p class="textTitle"> $7 </p>
    <p class="textBox">
      Lorem ipsum dolor sit amet, consectetur adipiscing 
      elit. Ut nec est viverra velit venenatis faucibus. Maecenas adipiscing, 
      lectus a hendrerit vulputate, tellus urna accumsan felis, semper tempor 
      mauris massa in odio. Duis sit amet nunc eu sem sagittis malesuada. <a href="#">Link</a>
    </p>
  </div>
  <div class="main_box user_style12" data-hipop="one-horizontal">
    <img src="images/12.jpg"> <a href="#" class="popup"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut nec est viverra 
    velit venenatis faucibus. Maecenas adipiscing, lectus a hendrerit vulputate, 
    tellus urna accumsan felis, semper tempor mauris massa in odio. Duis sit 
    amet nunc eu sem sagittis malesuada. </a></div>
  <div class="main_box user_style13" data-hipop="one">
    <img src="images/13.jpg"> <a href="#" class="popup"> </a></div>
  <div class="main_box user_style7" data-hipop="text_content2">
    <img src="images/7.jpg" title alt="Img preview">
    <p class="textTitle"> Title Here </p>
    <p class="textBox">
      Lorem ipsum dolor sit amet, consectetur adipiscing 
      elit. Aliquam vel mauris orci, nec lobortis sem. Ut urna dui, vehicula vel 
      gravida non, egestas nec eros. <a href="#">Link</a>
    </p>
  </div>
  <div class="main_box user_style8" data-hipop="rub">
    <img src="images/8.jpg"> <a href="#" class="r_board">AWESOME</a> </div>
  <div class="main_box user_style9" data-hipop="rub">
    <img src="images/9.jpg"> <a href="#" class="r_board"></a></div>
  <div class="main_box user_style10" data-hipop="rub">
    <img src="images/10.jpg"> <a href="#" class="r_board">$7</a> </div>
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 瀑布流 收藏 预览 自适应页面大小 响应式区块列表布局 摇摆 烟花 清单样式 照相机 注释 下划线 结构图 鼠标悬停 条形码 弹幕 画板 朋友圈样式 红包 css绘制样式 支付 图文布局 右键菜单 二维码 文字提示框 地图 提示框/弹出层 计算器 layer 计时器 lightbox 桌面 跳转 Tooltip工具提示框 步骤 浮动提示框 键盘 html5弹窗动画 签到 分享 点赞 投票 雪花 打印 答题 震动 图表 鼠标滑过 抽奖 表情 qq空间 头像截图 星星打分评分 编辑器 播放器 电子杂志 排行榜 分页翻页 排序 表格隔行变色 table表格 进度条 多功能 弹出层拖动 窗口提示框 滑动星星打分 其他更多

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到