国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

jQuery鼠標懸停內容動畫切換效果

2019-11-19 16:43:16
字體:
來源:轉載
供稿:網友

效果如下:

代碼如下:

<!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 --> <div class="servicesBox">  <div id="Div35" class="serBox" onclick="serFocus(1)">  <div class="serBoxOn"></div>  <div class="pic1 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/3.png"> </div>  <div class="pic2 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/3-3.png"> </div>  <div class="txt1"> <span class="tit">開心網</span>   <p>開心網營銷</p>  </div>  <div class="txt2">   <a  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>  </div>  </div>  <div id="Div36" class="serBox" onclick="serFocus(2)">  <div class="serBoxOn"></div>  <div class="pic1 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/1.png"> </div>  <div class="pic2 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/1-1.png"> </div>  <div class="txt1"> <span class="tit">人人網</span>   <p>人人網營銷</p>  </div>  <div class="txt2">   <a  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>  </div>  </div>  <div id="Div37" class="serBox" onclick="serFocus(3)">  <div class="serBoxOn"></div>  <div class="pic1 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/2.png"> </div>  <div class="pic2 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/2-2.png"> </div>  <div class="txt1"> <span class="tit">QQ空間</span>   <p>QQ空間營銷</p>  </div>  <div class="txt2">   <a  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>  </div>  </div>  <div id="Div38" class="serBox" onclick="serFocus(3)">  <div class="serBoxOn"></div>  <div class="pic1 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/35.png"> </div>  <div class="pic2 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/35-35.png"> </div>  <div class="txt1"> <span class="tit">問答營銷</span>   <p>問答投放 鎖住潛在客戶</p>  </div>  <div class="txt2">   <a  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>  </div>  </div>  <div id="Div39" class="serBox" onclick="serFocus(3)">  <div class="serBoxOn"></div>  <div class="pic1 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/31.png"> </div>  <div class="pic2 mypng"> <img src="http://demo.lanrenzhijia.com/2014/pic0910/images/31-31.png"> </div>  <div class="txt1"> <span class="tit">郵件推廣</span>   <p>低成本 商機無限</p>  </div>  <div class="txt2">   <a  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>  </div>  </div> </div> <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>

以上就是本文的全部內容,希望本文的內容對大家的學習或者工作能帶來一定的幫助,同時也希望多多支持武林網

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 临颍县| 靖州| 中牟县| 杭锦后旗| 长垣县| 大新县| 城市| 阜阳市| 同德县| 奎屯市| 岳普湖县| 天全县| 八宿县| 桂平市| 长垣县| 东兴市| 巴林左旗| 仁寿县| 敖汉旗| 台山市| 石林| 林州市| 沁源县| 海城市| 库尔勒市| 富顺县| 开化县| 涿州市| 清新县| 庄浪县| 淳化县| 黎平县| 巴中市| 兴城市| 木里| 温州市| 揭东县| 通江县| 白水县| 全州县| 南靖县|