jQuery循环滚动新闻列表示例代码
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=GBK"/>
<metahttp-equiv="X-UA-Compatible"content="IE=7"/>
<metaname="keywords"content=""><metaname="description"content="">
<title>test</title>
<scripttype="text/javascript"src="jquery-1.2.6.pack.js"></script>
<style>
.banner_index{float:left;width:730px;height:239px;overflow:hidden;margin:5px000;}
.banner_index_pic{width:730px;height:239px;overflow:hidden;}
</style>
</head>
<bodyscroll="yes">
<scripttype="text/javascript"src="jcarousellite_1.0.1.js"></script>
<div>
<li>
<imgsrc="pre_btn.jpg"border="0"id='gg_p'style="cursor:pointer;"title="上一条"/>
<imgsrc="break_btn.jpg"border="0"id='gg_s'style="cursor:pointer;"title="暂停"/>
<imgsrc="next_btn.jpg"border="0"id='gg_n'style="cursor:pointer;"title="下一条"/>
</li>
<li>
<astyle="cursor:hand"href="/notice/">
<b>网厅公告:</b></a>
<divid="dt_gg"style="display:none;float:left;width:450px;">
<ulstyle="height:25px;overflow:hidden;">
<listyle="width:300px">
<ahref="/cms/web/default/new/notice/50514.shtml"title="关于调整全省固定电话本地电话网营业区间通话费上限标准的通知">
<spanstyle="width:300px;">关于调整全省固定电话本地电话网</span>
</a>
<spanstyle="width:100px;">[2010-06-24]</span>
</li>
<listyle="width:300px">
<ahref="/cms/web/default/new/notice/50515.shtml"title="中国电信机场/车站贵宾服务电子化认证公告">
<spanstyle="width:300px;">中国电信机场/车站贵宾服务电子</span>
</a>
<spanstyle="width:100px;">[2010-06-24]</span>
</li>
</ul>
</div>
</li>
</div>
<scripttype="text/javascript">
jQuery(function(){
jQuery('#dt_gg').css("display","block");
if(jQuery('#dt_gg').find('li').length>1){
jQuery('#dt_gg').jCarouselLite({
btnPrev:'#gg_n',
btnNext:'#gg_p',
btnAutoSwitch:'#gg_s',
visible:1,
auto:5000,
speed:1000,
onMouse:true,
vertical:true
});
}else{
jQuery('#dt_gg').jCarouselLite({
visible:1
});
}
});
jQuery(function(){
jQuery('#gg_s').click(function(){
if(jQuery(this).attr('src')=="/cms/web/images/V3/public/break_btn.jpg"){
jQuery(this).attr('src','/cms/web/images/V3/public/play_btn.jpg');
jQuery(this).attr('title','播放');
}else{
jQuery(this).attr('src','/cms/web/images/V3/public/break_btn.jpg');
jQuery(this).attr('title','暂停');
}
});
});
</script>
热门推荐
10 香港老妈结婚祝福语简短
11 毕业立体贺卡祝福语简短
12 简短新年年会祝福语
13 评论小品祝福语大全简短
14 恭喜师兄结婚祝福语简短
15 员工集体辞职祝福语简短
16 高中新生祝福语 简短
17 装修祝福语男生搞笑简短
18 生日开业蛋糕祝福语简短