本文實例講述了javascript實現3D圖片逐張輪播幻燈片特效。分享給大家供大家參考。具體如下:
這是一款基于javascript實現3D圖片逐張輪播幻燈片特效代碼,實現過程很簡單。
運行效果圖:-------------------查看效果 下載源碼-------------------
小提示:瀏覽器中如果不能正常運行,可以嘗試切換瀏覽模式。
為大家分享的js實現3D圖片逐張輪播幻燈片特效代碼如下
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>js實現3D圖片逐張輪播幻燈片</title></head><body><style>ul#bcty365_nav{padding-left:50px; margin-bottom:10px; border-bottom:2px solid #ccc; overflow:hidden; _zoom:1;}ul#bcty365_nav li{float:left; display:inline; margin:10px;}ul#bcty365_nav li a{display:block;color:#000000; font-size:16px;}ul#bcty365_nav li a,#wimoban_p,#wimoban_p a{ font-family:"微軟雅黑";}ul#bcty365_nav li a:hover,#wimoban_p a:hover{color:red;}</style> <style type="text/css">*{margin:0;padding:0;list-style-type:none;}a,img{border:0;}body{font:12px/180% Arial, Helvetica, sans-serif,"新宋體";}/* focus_Box */#focus_Box{position:relative;width:710px;height:308px;margin:20px auto;}#focus_Box ul{position:relative;width:710px;height:308px}#focus_Box li{z-index:0;position:absolute; width:0px;background:#787878;height:0px;top:146px;cursor:pointer;left:377px;border-radius:4px;box-shadow:1px 1px 12px rgba(200, 200, 200, 1)}#focus_Box li img{width:100%;background:url(images/loading.gif) no-repeat center 50%;height:100%;vertical-align:top}#focus_Box li p{position:absolute;left:0;bottom:0px;width:100%;height:40px;line-height:40px;background:url(images/float-bg.png) repeat;text-indent:8px;color:#fff;}#focus_Box li p span{display:inline-block;width:70%;height:40px;overflow:hidden;}#focus_Box .prev,#focus_Box .next{display:block;z-index:100;overflow:hidden;cursor:pointer;position:absolute;width:52px;height:52px;top:131px;}#focus_Box .prev{background:url(images/btn.png) left bottom no-repeat;left:0px}#focus_Box .next{background:url(images/btn.png) right bottom no-repeat;right:0px} #focus_Box .prev:hover{background-position:left top;}#focus_Box .next:hover{background-position:right top;}#focus_Box a.imgs-scroll-btn{display:block;position:absolute;z-index:110;top:7px;right:15px;width:51px;height:23px;overflow:hidden;background:url(images/share-btn.png) no-repeat;text-indent:-999px;}</style><script src="js/ZoomPic.js"></script><div id="focus_Box"> <span class="prev"> </span> <span class="next"> </span> <ul> <li> <a href="http://www.49028c.com/"><img width="445" height="308" alt="這個時代 你所追求的是什么?" src="images/1.jpg" /></a> <p> <span>這個時代 你所追求的是什么?</span> <a href="http://www.49028c.com/" class="imgs-scroll-btn">分享</a> </p> </li> <li> <a href="http://www.49028c.com/"><img width="445" height="308" alt="我們所追求的不是擁有一切,而是擁有值得的一切" src="images/2.jpg" /></a> <p> <span>我們所追求的不是擁有一切,而是擁有值得的一切</span> <a href="http://www.49028c.com/" class="imgs-scroll-btn">分享</a> </p> </li> <li> <a href="http://www.49028c.com/"><img width="445" height="308" alt="一段旅程,兩個城市,潮流正在被重塑" src="images/3.jpg" /></a> <p> <span>一段旅程,兩個城市,潮流正在被重塑</span> <a href="http://www.49028c.com/" class="imgs-scroll-btn">分享</a> </p> </li> <li> <a href="http://www.49028c.com/"><img width="445" height="308" alt="你的眼光、激情、創意和內涵,也在重塑著城市的潮流" src="images/4.jpg" /></a> <p> <span>你的眼光、激情、創意和內涵,也在重塑著城市的潮流</span> <a href="http://www.49028c.com/" class="imgs-scroll-btn">分享</a> </p> </li> <li> <a href="http://www.49028c.com/"><img width="445" height="308" alt="在這里,拋開重重限制,釋放真實自我" src="images/5.jpg" /></a> <p> <span>在這里,拋開重重限制,釋放真實自我</span> <a href="http://www.49028c.com/" class="imgs-scroll-btn">分享</a> </p> </li> </ul></div><div style="text-align:center;clear:both"></div></body></html>
以上就是為大家分享的js實現3D圖片逐張輪播幻燈片特效代碼,希望大家可以喜歡,并應用到實踐中。
新聞熱點
疑難解答