本例用了2个js文件jquery-ui-1.8.6.core.widget.js和jqueryui.bannerize.js,到演示页面可以查看 CSS Code 复制代码 代码如下: <BR>*{margin:0;padding:0;list-style-type:none;} <BR>a,img{border:0;} <BR>/* ui-banner */ <BR>.ui-banner{display:block;position:relative;width:820px;margin:20px auto;} <BR>.ui-banner.ui-banner-invalid{display:none;} <BR>.ui-banner,.ui-banner .ui-banner-slides,.ui-banner .ui-banner-slogans,.ui-banner .ui-banner-arrow{height:233px;} <BR>.ui-banner .ui-banner-slides,.ui-banner .ui-banner-slogans,.ui-banner .ui-banner-arrow{position:absolute;top:0;} <BR>.ui-banner ul{list-style-type:none;margin:0;padding:0;overflow:hidden;} <BR>.ui-banner .ui-banner-slides{width:654px;height:233px;left:1px;} <BR>.ui-banner .ui-banner-slides li{display:none;position:absolute;} <BR>.ui-banner .ui-banner-slides li img{width:654px;height:233px;border:none;} <BR>.ui-banner .ui-banner-slides li.ui-banner-slides-current,.ui-banner .ui-banner-slides li.ui-banner-slides-prev,.ui-banner .ui-banner-slides li.ui-banner-slides-next{display:block;} <BR>.ui-banner .ui-banner-slides li.ui-banner-slides-current{left:0;} <BR>.ui-banner .ui-banner-slides li.ui-banner-slides-prev{left:-654px;} <BR>.ui-banner .ui-banner-slides li.ui-banner-slides-next{left:654px;} <BR>.ui-banner .ui-banner-slogans{background:#009AC9;height:213px;overflow:hidden;padding:10px 30px 10px 15px;width:118px;rightright:0;} <BR>.ui-banner .ui-banner-slogans li{cursor:pointer;color:#8DC4EC;text-align:left;font-weight:bold;font-size:12px;line-height:14px;padding:10px 0 10px 10px;margin-left:5px;border-bottom:1px solid #79B4DF;list-style:none;list-style-type:none;} <BR>.ui-banner .ui-banner-slogans li.ui-banner-slogans-current{color:#FFF;} <BR>.ui-banner .ui-banner-slogans li.ui-banner-slogans-prev{border-bottom:none;} <BR>.ui-banner .ui-banner-arrow{display:block;width:45px;outline:none;} <BR>.ui-banner .ui-banner-arrow.ui-banner-arrow-prev{left:-14px;top:100px;background:transparent url("images/hero-slider-arrow-left.png") no-repeat 0 0;} <BR>.ui-banner .ui-banner-arrow.ui-banner-arrow-next{left:630px;top:100px;background:transparent url("images/hero-slider-arrow-right.png") no-repeat 0 0;} <BR>.ui-banner .ui-banner-arrow.ui-banner-arrow-next img{left:-15px;} <BR>.ui-banner .ui-banner-overlay{bottombottom:0;height:10px;position:absolute;rightright:0;width:173px;} <BR> XML/HTML Code 复制代码 代码如下: 大连 二连浩特 漠河 三亚 香港 舟山 JavaScript Code 复制代码 代码如下: <BR>$(document).ready(function(){ <BR>$('#banners').bannerize({ <BR>shuffle: 1, <BR>interval: "5" <BR>}); <BR>}); <BR>