基于jQuery css3实现渐变焦点图



34 132 45



特效描述:基于jQuery css3实现 渐变焦点图,基于jQuery css3实现渐变焦点图

代码结构

1. 引入CSS

<link rel="stylesheet" media="screen, print" href="css/basic.css" />
<link rel="stylesheet" media="screen" href="css/screen.css" />
<link rel="stylesheet" media="screen, print" href="css/basic.css" />
<link rel="stylesheet" media="screen" href="css/screen.css" />

2. 引入JS

<script src="js/jquery.js"></script>
<script type="text/javascript" src="js/scripts.js"></script>
<script type="text/javascript" src="js/jquery.cycle.min.js"></script>
<script type="text/javascript" src="js/featured.js"></script>
<script src="js/jquery.js"></script>
<script type="text/javascript" src="js/scripts.js"></script>
<script type="text/javascript" src="js/jquery.cycle.min.js"></script>
<script type="text/javascript" src="js/featured.js"></script>

3. HTML代码

<!doctype html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title></title>
<meta name="viewport" content="width=device-width; initial-scale=1.0">
</head>
<body id="home-page">
<div id="wrap">
	<div id="content">
	<section id="featured">
		<div id="slides">
		<section id="slide-1" class="alt">
			<img src="img/0140_foodsense.jpg" alt="What's Cooking? " />
			<a href="http://51qianduan.com/">
			<h1>What&#39;s Cooking? </h1>
			<h2>Browse our gallery for dependably delicious recipes. </h2>
			</a>
			<p class="credit">photo by Clare Barboza</p>
		</section>
	<section id="slide-2" >
			<img src="img/0219_foodsense.jpg" alt="Read, Learn, Share" />
			<a href="http://51qianduan.com/">
			<h1>Read, Learn, Share</h1>
			<h2>Get daily how-tos, stories &amp; updates with the latest news. </h2>
			</a>
			<p class="credit">photo by Clare Barboza</p>		</section>
	<section id="slide-3" class="alt">
			<img src="img/0052_foodsense.jpg" alt="Shop for the Best" />
			<a href="http://51qianduan.com/">
			<h1>Shop for the Best</h1>
			<h2>With our carefully curated vendor list, you&#39;ll know what to buy.
			</h2>
			</a>
			<p class="credit">photo by Clare Barboza</p>		</section>
	<section id="slide-4" >
			<img src="img/0232_foodsense.jpg" alt="Share your Food Sense" />
			<a href="http://51qianduan.com/">
			<h1>Share your Food Sense</h1>
			<h2>Submit your favorite recipes, become a contributor, or get 
			interviewed.</h2>
			</a>
			<p class="credit">photo by Clare Barboza</p>		</section>
		</div>
		<div id="nav">
			<ul>
				<li id="feature-1"><a href="http://51qianduan.com/">
				<h3>Tastemakers</h3>
				<p>Feast your eyes &amp; get recipes!</p>
				</a></li>
				<li id="feature-2"><a href="http://51qianduan.com/">
				<h3>Blog</h3>
				<p>News, how-tos, stories, and more</p>
				</a></li>
				<li id="feature-3"><a href="http://51qianduan.com/">
				<h3>The A-List</h3>
				<p>Handpicked, absolute favorites</p>
				</a></li>
				<li id="feature-4"><a href="http://51qianduan.com/">
				<h3>Contribute</h3>
				<p>We want to hear from you!</p>
				</a></li>
			</ul>
		</div>
</section>
	</div>
	<!-- /#content -->
<div style="text-align:center;clear:both">
</div>
</body>
</html>



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


热门标签: flash焦点图 flash幻灯片 flashbanner flash图片轮播 滑动选项卡 滑动切换 滚动切换 滚动条切换 滑动手风琴 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 滑动星星打分 渐隐切换 淡出淡进 淡出 淡进 焦点图 幻灯片 轮播图 bar焦点图 其他 图片淡出淡进 图片淡出 图片淡进 带标题的焦点图 纯图片轮播 图片轮播 文字切换 文字选项卡 选项卡自动切换 鼠标滑过 鼠标悬停 跟随鼠标移动

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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