2013-03-05|3757阅|作者:坏人|举报 摘要:实现图片切换功能(各种渐变、滑动效果),由于图片的切换效果用截图不好表现,所以没有上传截图
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<html lang="en">
<head>
<title>滑动渐变演示</title>
<!-- 加载所有样式 -->
<link rel="stylesheet" href="images/themes/default/default.css" type="text/css" media="screen" /><!-- stylesheet样式表 -->
<link rel="stylesheet" href="images/themes/pascal/pascal.css" type="text/css" media="screen" />
<link rel="stylesheet" href="images/themes/orman/orman.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<!-- <a href="http://dev7studios.com" id="dev7link" title="Go to dev7studios">dev7studios</a> 暂时注释此行-->
<div class="slider-wrapper theme-default">
<div class="ribbon"></div>
<div id="slider" class="nivoSlider">
<img src="images/toystory.jpg" alt="" /> <!-- 此图无链接 -->
<!-- 下图链接 网址:"http://dev7studios.com"-->
<!-- 暂时注释此行 <a href="http://dev7studios.com"><img src="images/up.jpg" alt="" title="This is an example of a caption" /></a> -->
<img src="images/up.jpg" alt="" title="六月伤感" />
<img src="images/walle.jpg" alt="" />
<img src="images/nemo.jpg" alt="" title="#htmlcaption" />
</div>
<div id="htmlcaption" class="nivo-html-caption">
<!--
<strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>.
-->
</div>
</div>
</div>
<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
</body>
</html>