利用jQuery实现电视墙高亮幻灯片切换



32 124 42



特效描述:利用jQuery实现 电视墙高亮 幻灯片切换,利用jQuery实现电视墙高亮幻灯片切换

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" >
<link rel="stylesheet" type="text/css" href="css/bootstrap-responsive.min.css" >
<link rel="stylesheet" href="css/flexslider.css">
<link rel="stylesheet" type="text/css" href="css/style.css">

2. 引入JS

<script src="js/jquery-1.9.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/jquery.flexslider.js"></script>

3. HTML代码

	<!-- clients !-->
	<div class="clientblock" id="clients">
		<div class="container">			  <!-- container !-->
			<div class="paddingcnt">	 		<!-- padding for container for 767px and less !-->		
				<!-- title block !-->
				<div class="titleblock">
				</div>
				<!-- end title block !-->				
				<div class="frameborder">
					<img src="images/clientframe.png" alt="">
					<div class="frame">
					<div class="flexslider">
					  <ul class="slides">
						<!-- slide 1 !-->
						<li>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>
								<img src="images/mac.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>							
								<img src="images/yt.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>							
								<img src="images/ny.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/fb.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/pb.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/cc.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/ing.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/rb.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>						
						</li>
						<!-- end slide 1 !-->
						<!-- slide 2 !-->						
						<li>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>
								<img src="images/mac.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>							
								<img src="images/yt.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>							
								<img src="images/ny.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/fb.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/pb.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/cc.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/ing.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/rb.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>				
						</li>
						<!-- end slide 2 !-->
						<!-- slide 3 !-->						
						<li>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>
								<img src="images/mac.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>							
								<img src="images/yt.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>							
								<img src="images/ny.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/fb.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/pb.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/cc.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/ing.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>
							<a href="http://51qianduan.com/" target="_blank" class="clientmain">   		<!-- set website of the client !-->
								<span class="mask"></span>														
								<img src="images/rb.jpg" alt="">     	<!-- set logo of the client   !-->
							</a>				
						</li>
						<!-- slide 3 !-->
					  </ul>
					</div>			
					</div>
				</div>
			</div>	 		<!-- end padding for container for 767px and less !-->	
		</div>		  <!-- end container !-->			
	</div>
	<!-- end clients !-->
<!--js-->	
<script type="text/javascript">
/* <![CDATA[ */				
jQuery(function($){				
	$(window).resize(function(){
		var imgheight=$('.frame').height();
		var imgwidth=$('.frame').width();		
		var imgheight1=imgheight/2;
		var imgwidth1=(imgwidth)/4;
		$('.flexslider .slides li').css('height',imgheight);
		$('.clientmain').css('width',imgwidth1);
		$('.clientmain').css('height',imgheight1);		
	});	
	$(window).resize();
});
$(window).load(function(){
    $('.flexslider').flexslider({
       animation: "slide",
	   controlNav: false,
	   directionNav: true,	
       start: function(slider){
          $('body').removeClass('loading');
       }
    });	
});
/* ]]> */	    
</script>
<div style="text-align:center;clear:both">
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 图片放大镜 图片拖动 图片拖拽 图片叠加 图片层叠 图片翻转 图片旋转 图片延迟加载 图片延迟 图片加载 图片淡出淡进 图片淡出 图片淡进 图片全屏 头像上传 图片上传 二维码 h5图片动画 h5图标动画 html5图片动画 html5图标动画 带缩略图的幻灯片 地图 中国地图 世界地图 图片放大缩小 图片缩放 图片大小 图片放大 图片缩小 图片变大 图片变小 flash焦点图 flash幻灯片 flashbanner flash图片轮播 滚动切换 滚动条切换 滑动选项卡 滑动切换 图片广告 图片滑动 图片滑块 旋转木马 图片旋转木马 文字旋转木马 旋转木马插件 纯图片轮播 图片轮播 图片滚动 图片滚动条 图片切换 图片选项卡 图标选项卡 图片收缩展开 图片收缩 图片展开 图标导航 图标菜单 自动滚动图片轮播 背景切换 大图切换 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 滑动手风琴 滑动星星打分 手风琴 水平手风琴 垂直手风琴 图片手风琴 文字手风琴 手风琴插件 切换按钮 图表 表单 表单美化 表单插件 表单美化插件 焦点图 幻灯片 轮播图 bar焦点图 图片 图片插件 头像截图 其他 图片切换 图片选项卡 图标选项卡 纯图片轮播 图片轮播 图片网格 图片高亮 按钮控制 鼠标滑过 鼠标悬停 跟随鼠标移动

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到