• 技术文章 >web前端 >html教程

    图片滚动特效

    高洛峰高洛峰2017-02-08 10:16:50原创2297
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <title>SuperSlide - 图片滚动特效-左</title>
    <script type="text/javascript" src="../jquery1.42.min.js"></script>
    <script type="text/javascript" src="../jquery.SuperSlide.2.1.1.js"></script>
    </head>
    
    <body>
    
    
    
    		<style type="text/css">
    		/* css 重置 */
    		*{margin:0; padding:0; list-style:none; }
    		body{ background:#fff; font:normal 12px/22px 宋体;  }
    		img{ border:0;  }
    		a{ text-decoration:none; color:#333;  }
    
    		/* 本例子css */
    		.picScroll-left{ width:450px;  overflow:hidden; position:relative;  border:1px solid #ccc;   }
    		.picScroll-left .hd{ overflow:hidden;  height:30px; background:#f4f4f4; padding:0 10px;  }
    		.picScroll-left .hd .prev,.picScroll-left .hd .next{ display:block;  width:5px; height:9px; float:right; margin-right:5px; margin-top:10px;  overflow:hidden;
    			 cursor:pointer; background:url("images/arrow.png") no-repeat;}
    		.picScroll-left .hd .next{ background-position:0 -50px;  }
    		.picScroll-left .hd .prevStop{ background-position:-60px 0; }
    		.picScroll-left .hd .nextStop{ background-position:-60px -50px; }
    		.picScroll-left .hd ul{ float:right; overflow:hidden; zoom:1; margin-top:10px; zoom:1; }
    		.picScroll-left .hd ul li{ float:left;  width:9px; height:9px; overflow:hidden; margin-right:5px; text-indent:-999px; cursor:pointer; background:url("images/icoCircle.gif") 0 -9px no-repeat; }
    		.picScroll-left .hd ul li.on{ background-position:0 0; }
    		.picScroll-left .bd{ padding:10px;   }
    		.picScroll-left .bd ul{ overflow:hidden; zoom:1; }
    		.picScroll-left .bd ul li{ margin:0 8px; float:left; _display:inline; overflow:hidden; text-align:center;  }
    		.picScroll-left .bd ul li .pic{ text-align:center; }
    		.picScroll-left .bd ul li .pic img{ width:120px; height:90px; display:block;  padding:2px; border:1px solid #ccc; }
    		.picScroll-left .bd ul li .pic a:hover img{ border-color:#999;  }
    		.picScroll-left .bd ul li .title{ line-height:24px;   }
    
    		</style>
    
    		<div class="picScroll-left">
    			<div class="hd">
    				<a class="next"></a>
    				<a class="prev"></a>
    			</div>
    			<div class="bd">
    				<ul class="picList">
    					<li>
    						<div class="pic"><a href="http://www.SuperSlide2.com" target="_blank"><img src="images/pic1.jpg" /></a></div>
    						<div class="title"><a href="http://www.SuperSlide2.com" target="_blank">效果图1</a></div>
    					</li>
    					<li>
    						<div class="pic"><a href="http://www.SuperSlide2.com" target="_blank"><img src="images/pic2.jpg" /></a></div>
    						<div class="title"><a href="http://www.SuperSlide2.com" target="_blank">效果图2</a></div>
    					</li>
    					<li>
    						<div class="pic"><a href="http://www.SuperSlide2.com" target="_blank"><img src="images/pic3.jpg" /></a></div>
    						<div class="title"><a href="http://www.SuperSlide2.com" target="_blank">效果图3</a></div>
    					</li>
    					<li>
    						<div class="pic"><a href="http://www.SuperSlide2.com" target="_blank"><img src="images/pic4.jpg" /></a></div>
    						<div class="title"><a href="http://www.SuperSlide2.com" target="_blank">效果图4</a></div>
    					</li>
    					<li>
    						<div class="pic"><a href="http://www.SuperSlide2.com" target="_blank"><img src="images/pic5.jpg" /></a></div>
    						<div class="title"><a href="http://www.SuperSlide2.com" target="_blank">效果图5</a></div>
    					</li>
    					<li>
    						<div class="pic"><a href="http://www.SuperSlide2.com" target="_blank"><img src="images/pic6.jpg" /></a></div>
    						<div class="title"><a href="http://www.SuperSlide2.com" target="_blank">效果图6</a></div>
    					</li>
    				</ul>
    			</div>
    		</div>
    
    		<script type="text/javascript">
    		jQuery(".picScroll-left").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"left",autoPlay:true,vis:3,trigger:"click"});
    		</script>
    
    
    
    </body>
    </html>

    更多图片滚动特效相关文章请关注PHP中文网!

    声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。
    专题推荐:滚动 HTML
    上一篇:<canvas> 标记和 SVG 以及 VML 之间的差异 下一篇:自己动手写 PHP MVC 框架(40节精讲/巨细/新人进阶必看)

    相关文章推荐

    • ajax基本介绍• jquery的each,map,has• html +CSS+div学习――第二课_html/css_WEB-ITnose• 使用jQuery实现地址联动• 七个你可能不了解的CSS单位_html/css_WEB-ITnose
    1/1

    PHP中文网