91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

jQuery鼠標懸停內容動畫切換效果怎么實現

發布時間:2020-10-26 09:23:42 來源:億速云 閱讀:242 作者:小新 欄目:MySQL數據庫

小編給大家分享一下jQuery鼠標懸停內容動畫切換效果怎么實現,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!

效果如下:

jQuery鼠標懸停內容動畫切換效果怎么實現

代碼如下:

<!DOCTYPE html>
<html>
 <head>
 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
 <title>jQuery鼠標懸停內容動畫切換效果</title>
 <style>
  * {
  margin: 0;
  padding: 0;
  list-style: none;
  }
  img {
  border: 0;
  }
  a {
  color: #fff;
  text-decoration: none;
  }
  .servicesBox {
  width: 1000px;
  height: 270px;
  margin: 0 auto;
  clear: both;
  line-height: 18px;
  color: #999999;
  font-size: 12px;
  }
  .servicesBox .serBox {
  cursor: pointer;
  border: 1px solid #fff;
  display: inline;
  width: 198px;
  height: 250px;
  float: left;
  overflow: hidden;
  background-color: #f7f7f7;
  position: relative;
  }
  .servicesBox .serBoxOn {
  font-family: "Microsoft Yahei";
  display: none;
  width: 320px;
  height: 270px;
  background: url(http://demo.lanrenzhijia.com/2014/pic0910/images/serboxon_bg.gif) repeat 0px 0px;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 19;
  }
  .servicesBox .serBox .pic1 {
  width: 110px;
  height: 110px;
  text-align: center;
  position: absolute;
  top: 22px;
  right: 41px;
  z-index: 99;
  }
  .servicesBox .serBox .pic2 {
  width: 110px;
  height: 110px;
  text-align: center;
  position: absolute;
  top: 22px;
  left: -110px;
  z-index: 99;
  }
  .servicesBox .serBox .txt1 {
  width: 198px;
  height: 100px;
  color: #999999;
  position: absolute;
  top: 145px;
  left: 0px;
  z-index: 99;
  }
  .servicesBox .serBox .txt2 {
  width: 198px;
  height: 100px;
  color: #a9cf4f;
  position: absolute;
  top: 145px;
  right: -240px;
  z-index: 99;
  }
  .servicesBox .serBox span.tit {
  font-size: 16px;
  display: block;
  text-align: center;
  }
  .servicesBox .serBox .txt1 .tit {
  color: #000000;
  line-height: 30px;
  }
  .servicesBox .serBox .txt2 .tit {
  color: #fff;
  line-height: 30px;
  font-family: "Microsoft Yahei";
  }
  .servicesBox .serBox p {
  padding: 0 10px;
  text-align: center;
  }
 </style>
 </head>
 <body>
 <!-- 代碼begin -->
 <p class="servicesBox">
  <p id="p35" class="serBox" onclick="serFocus(1)">
  <p class="serBoxOn"></p>
  <p class="pic1 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/3.png"> </p>
  <p class="pic2 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/3-3.png"> </p>
  <p class="txt1"> <span class="tit">開心網</span>
   <p>開心網營銷</p>
  </p>
  <p class="txt2">
   <a href="http://www.lanrenzhijia.com" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="a_jump"><span class="tit">開心網</span>
   <p>開心網營銷</p>
   </a>
  </p>
  </p>
  <p id="p36" class="serBox" onclick="serFocus(2)">
  <p class="serBoxOn"></p>
  <p class="pic1 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/1.png"> </p>
  <p class="pic2 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/1-1.png"> </p>
  <p class="txt1"> <span class="tit">人人網</span>
   <p>人人網營銷</p>
  </p>
  <p class="txt2">
   <a href="http://www.lanrenzhijia.com" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="a_jump"><span class="tit">人人網</span>
   <p>人人網營銷</p>
   </a>
  </p>
  </p>
  <p id="p37" class="serBox" onclick="serFocus(3)">
  <p class="serBoxOn"></p>
  <p class="pic1 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/2.png"> </p>
  <p class="pic2 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/2-2.png"> </p>
  <p class="txt1"> <span class="tit">QQ空間</span>
   <p>QQ空間營銷</p>
  </p>
  <p class="txt2">
   <a href="http://www.lanrenzhijia.com" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="a_jump"><span class="tit">QQ空間</span>
   <p>QQ空間營銷</p>
   </a>
  </p>
  </p>
  <p id="p38" class="serBox" onclick="serFocus(3)">
  <p class="serBoxOn"></p>
  <p class="pic1 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/35.png"> </p>
  <p class="pic2 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/35-35.png"> </p>
  <p class="txt1"> <span class="tit">問答營銷</span>
   <p>問答投放 鎖住潛在客戶</p>
  </p>
  <p class="txt2">
   <a href="http://www.lanrenzhijia.com" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="a_jump"><span class="tit">問答營銷</span>
   <p>問答投放 鎖住潛在客戶</p>
   </a>
  </p>
  </p>
  <p id="p39" class="serBox" onclick="serFocus(3)">
  <p class="serBoxOn"></p>
  <p class="pic1 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/31.png"> </p>
  <p class="pic2 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/31-31.png"> </p>
  <p class="txt1"> <span class="tit">郵件推廣</span>
   <p>低成本 商機無限</p>
  </p>
  <p class="txt2">
   <a href="http://www.lanrenzhijia.com" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="a_jump"><span class="tit">郵件推廣</span>
   <p>低成本 商機無限</p>
   </a>
  </p>
  </p>
 </p>
 <script src="http://www.lanrenzhijia.com/ajaxjs/jquery.min.js"></script>
 <script>
  $(function() {
  $(".serBox").hover(
   function() {
   $(this).children().stop(false, true);
   $(this).children(".serBoxOn").fadeIn("slow");
   $(this).children(".pic1").animate({
    right: -110
   }, 400);
   $(this).children(".pic2").animate({
    left: 41
   }, 400);
   $(this).children(".txt1").animate({
    left: -240
   }, 400);
   $(this).children(".txt2").animate({
    right: 0
   }, 400);
   },
   function() {
   $(this).children().stop(false, true);
   $(this).children(".serBoxOn").fadeOut("slow");
   $(this).children(".pic1").animate({
    right: 41
   }, 400);
   $(this).children(".pic2").animate({
    left: -110
   }, 400);
   $(this).children(".txt1").animate({
    left: 0
   }, 400);
   $(this).children(".txt2").animate({
    right: -240
   }, 400);
   }
  );
  });
 </script>
 <!-- 代碼end -->
</body>
</html>

以上是jQuery鼠標懸停內容動畫切換效果怎么實現的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注億速云行業資訊頻道!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

福鼎市| 剑川县| 金华市| 灵寿县| 霞浦县| 句容市| 农安县| 肥乡县| 大竹县| 潮安县| 长岛县| 望都县| 年辖:市辖区| 龙海市| 太仆寺旗| 米泉市| 信宜市| 且末县| 富锦市| 张掖市| 宁安市| 广宁县| 临桂县| 阳城县| 双城市| 庆安县| 农安县| 喀喇沁旗| 嫩江县| 余庆县| 安多县| 屏山县| 洪江市| 永寿县| 泽库县| 赞皇县| 大姚县| 阳新县| 集贤县| 额济纳旗| 监利县|