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

首頁 > 編程 > JavaScript > 正文

jQuery實現的圖文高亮滾動切換特效實例

2019-11-20 11:52:42
字體:
來源:轉載
供稿:網友

本文實例講述了jQuery實現的圖文高亮滾動切換特效。分享給大家供大家參考。具體如下:

這里介紹jQuery圖文高亮滾動切換特效,jQuery鼠標滑過圖文開關燈切換特效,背景變暗,子內容向上滑動顯示出來,鼠標的操作感極強,希望大家喜歡本效果。

運行效果截圖如下:

具體代碼如下:

<!DOCTYPE html><html lang="en"><head><title>jQuery圖文高亮滾動切換</title><style>*{ margin:0; padding:0;}body{ font-family:"宋體"; font-size:12px;text-decoration:none; color:#292929; }h1,h2,h3,h4,h5,h6,p,input,select,td{margin:0;padding:0;}li{list-style:none;}.fl{float:left;}a{text-decoration:none;color:#353535;}img{border:0; vertical-align:top;}.clear{clear:both;}.grid1k { width: 990px; margin: 0 auto;}.grid_full { width: 100%;}.grid1024 { width: 1024px; margin: 0 auto;}.fr { float: right;}.fl { float: left;}.color_blue { color: #29388c;}.color_fff { color: #fff;}.color_333 { color: #333;}.color_666 { color: #666;}.color_999 { color: #999;}.color_orange { color: #e88d27;}.one_fourth_box { display: block; position: relative; width: 326px; height: 135px; margin: 0 2px 2px 0; background: #f6f6f6; overflow: hidden;}.ofb-r { margin-right: 0!important;}.ofb-bg { display: none; width: 100%; height: 100%; position: absolute; z-index: 2; background: #333;}.ofb-img { position: absolute; top: 32px; left: 13px; z-index: 10;}.ofb-img-bottom { position: absolute; top: 160px; left: 13px; z-index: 10;}.ofb-text { position: absolute; top: 25px; left: 144px; width:178px; z-index: 10;}.ofb-text-top { position: absolute; top: -110px; left: 144px; width: 178px; z-index: 10;}.ofb-text h5,.ofb-text-top h5 { font-size: 14px; line-height:16px;}.ofb-text p,.ofb-text-top p { margin-top: 3px; font-size:12px; font-family:"宋體"; line-height:15px;}.ofb-r .ofb-img,.ofb-r .ofb-img-bottom { left: 65px;}.ofb-r .ofb-text,.ofb-r .ofb-text-top { left: 235px; width: 265px;}.color_111{ font-size:14px; color: #999;}.color_222{ font-size:14px; color: #000;}</style><script src="jquery-1.6.2.min.js"></script><script>  $(function(){   //服務   $('.one_fourth_box').each(function(){    $(this).hover(function(){     $(this).children('.ofb-img').stop(true).animate({top:'-135px'})     $(this).children('.ofb-img-bottom').stop(true).animate({top:'25px'})     $(this).children('.ofb-text').stop(true).animate({top:'160px'})     $(this).children('.ofb-text-top').stop(true).animate({top:'25px'})     $(this).children('.ofb-bg').stop(true,true).fadeIn();    },function(){     $(this).children('.ofb-img').stop(true).animate({top:'25px'})     $(this).children('.ofb-img-bottom').stop(true).animate({top:'160px'})     $(this).children('.ofb-text').stop(true).animate({top:'25px'})     $(this).children('.ofb-text-top').stop(true).animate({top:'-110px'})     $(this).children('.ofb-bg').stop(true,true).fadeOut();    })   })  }) </script><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><div class="grid1k"> <a href="/" class="one_fourth_box fl"> <div class="ofb-bg" style="display: none;"></div> <div class="ofb-img mypng" style="top: 25px;"><img src="http://files.VeVB.COm/file_images/article/201508/2015810113025969.jpg" width="118" height="78" alt=""></div> <div class="ofb-img-bottom mypng" style="top: 160px;"><img src="http://files.VeVB.COm/file_images/article/201508/2015810113025969.jpg" width="118" height="78" alt=""></div> <div class="ofb-text" style="top: 25px;"> <h5 class="color_333">節 能/Saving</h5> <p class="color_666">玻璃窗是建筑物中隔熱和保溫最弱的環節。Sunscape太陽隔熱膜能使窗戶增加隔熱和保 溫性能,有助于增加舒適性</p> </div> <div class="ofb-text-top" style="top: -110px;"> <h5 class="color_orange">節 能/Saving</h5> <p class="color_999">玻璃窗是建筑物中隔熱和保溫最弱的環節。Sunscape太陽隔熱膜能使窗戶增加隔熱和保 溫性能,有助于增加舒適性</p> </div> </a> <a href="/" class="one_fourth_box fl"> <div class="ofb-bg" style="display: none;"></div> <div class="ofb-img mypng" style="top: 25px;"><img src="http://files.VeVB.COm/file_images/article/201508/2015810113025969.jpg" width="118" height="78" alt=""></div> <div class="ofb-img-bottom mypng" style="top: 160px;"><img src="http://files.VeVB.COm/file_images/article/201508/2015810113025969.jpg" width="118" height="78" alt=""></div> <div class="ofb-text" style="top: 25px;"> <h5 class="color_333">節 能/Saving</h5> <p class="color_666">玻璃窗是建筑物中隔熱和保溫最弱的環節。Sunscape太陽隔熱膜能使窗戶增加隔熱和保 溫性能,有助于增加舒適性</p> </div> <div class="ofb-text-top" style="top: -110px;"> <h5 class="color_orange">節 能/Saving</h5> <p class="color_999">玻璃窗是建筑物中隔熱和保溫最弱的環節。Sunscape太陽隔熱膜能使窗戶增加隔熱和保 溫性能,有助于增加舒適性</p> </div> </a> <a href="/" class="one_fourth_box fl"> <div class="ofb-bg" style="display: none;"></div> <div class="ofb-img mypng" style="top: 25px;"><img src="http://files.VeVB.COm/file_images/article/201508/2015810113025969.jpg" width="118" height="78" alt=""></div> <div class="ofb-img-bottom mypng" style="top: 160px;"><img src="http://files.VeVB.COm/file_images/article/201508/2015810113025969.jpg" width="118" height="78" alt=""></div> <div class="ofb-text" style="top: 25px;"> <h5 class="color_333">節 能/Saving</h5> <p class="color_666">玻璃窗是建筑物中隔熱和保溫最弱的環節。Sunscape太陽隔熱膜能使窗戶增加隔熱和保 溫性能,有助于增加舒適性</p> </div> <div class="ofb-text-top" style="top: -110px;"> <h5 class="color_orange">節 能/Saving</h5> <p class="color_999">玻璃窗是建筑物中隔熱和保溫最弱的環節。Sunscape太陽隔熱膜能使窗戶增加隔熱和保 溫性能,有助于增加舒適性</p> </div> </a> <a href="/" class="one_fourth_box ofb-r fl"> <div class="ofb-bg" style="display: none;"></div> <div class="ofb-img mypng" style="top: 25px;"><img src="http://files.VeVB.COm/file_images/article/201508/2015810113741210.png" alt=""></div> <div class="ofb-img-bottom mypng" style="top: 160px;"><img src="http://files.VeVB.COm/file_images/article/201508/2015810113518952.png" alt=""></div> <div class="ofb-text" style="top: 25px;"> <h5 class="color_333">移動互聯網</h5> <p class="color_666">移動互聯網:APP客戶端開發,Android、IOS、Winphone 多平臺支持</p> </div> <div class="ofb-text-top" style="top: -110px;"> <h5 class="color_orange">移動互聯網</h5> <p class="color_999">移動互聯網:手機網站建設、APP客戶端開發,Android、IOS、Winphone 多平臺支持</p> </div> </a> <a href="/" class="one_fourth_box fl"> <div class="ofb-bg" style="display: none;"></div> <div class="ofb-img mypng" style="top: 25px;"><img src="http://files.VeVB.COm/file_images/article/201508/2015810113138004.png" alt=""></div> <div class="ofb-img-bottom mypng" style="top: 160px;"><img src="http://files.VeVB.COm/file_images/article/201508/2015810113033195.png" alt=""></div> <div class="ofb-text" style="top: 25px;"> <h5 class="color_333">網站運維</h5> <p class="color_666">您多長時間更新一次網站?每天、每周還是半年...<br> 網站運行的怎么樣?給您帶來收益了嗎?<br> 網站的運營與維護將決定網站的生命質量。</p> </div> <div class="ofb-text-top" style="top: -110px;"> <h5 class="color_orange">網站運維</h5> <p class="color_999">您多長時間更新一次網站?每天、每周還是半年...網站運行的怎么樣?給您帶來收益了嗎?網站的運營與維護將決定網站的生命質量。</p> </div> </a> <a href="/" class="one_fourth_box ofb-r fl"> <div class="ofb-bg" style="display: none;"></div> <div class="ofb-img mypng" style="top: 25px;"><img src="http://files.VeVB.COm/file_images/article/201508/2015810114041131.png" alt=""></div> <div class="ofb-img-bottom mypng" style="top: 160px;"><img src="http://files.VeVB.COm/file_images/article/201508/2015810114120324.png" alt=""></div> <div class="ofb-text" style="top: 25px;"> <h5 class="color_333">產品開發</h5> <p class="color_666">互聯網功能性平臺建設,定制化功能性網站產品銷售。</p> </div> <div class="ofb-text-top" style="top: -110px;"> <h5 class="color_orange">產品開發</h5> <p class="color_999">互聯網功能性平臺建設,定制化網站產品開發服務。</p> </div> </a> </div><div style="text-align:center;clear:both"><br></div></body></html>

希望本文所述對大家的jquery程序設計有所幫助。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 额尔古纳市| 兴宁市| 泗水县| 禹城市| 临江市| 乐陵市| 普格县| 宁明县| 鄯善县| 三河市| 镇江市| 台前县| 枞阳县| 灵川县| 枣阳市| 仙居县| 廊坊市| 普格县| 东光县| 清新县| 乌审旗| 保山市| 五常市| 揭东县| 子洲县| 江山市| 百色市| 阳朔县| 柘荣县| 东台市| 新沂市| 海兴县| 富顺县| 吉首市| 阳春市| 那曲县| 大庆市| 杭锦旗| 盘锦市| 无棣县| 葫芦岛市|