jQuery循环滚动新闻列表

最近由于项目原因,学习了下jquery,实现了一个小小的功能,就是点击公告的上一条下一条来查看滚动条。具体代码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=GBK" />

<meta http-equiv="X-UA-Compatible" content="IE=7" />

<meta name="keywords" content=""><meta name="description" content="">

<title>test</title>

<script type="text/javascript" src="jquery-1.2.6.pack.js"></script>

<style>

.banner_index { float:left; width:730px; height:239px; overflow:hidden; margin:5px 0 0 0;}

.banner_index_pic { width:730px; height:239px; overflow:hidden;}

</style>

</head>

<body scroll="yes">

<script type="text/javascript" src="jcarousellite_1.0.1.js"></script>

<div class="gg">

<li class="gg_btn">

<img src="pre_btn.jpg" title="上一条"/>

<img src="break_btn.jpg" title="暂停"/>

<img src="next_btn.jpg" title="下一条"/>

</li>

<li class="gg_info">

<a class="aa" href="/notice/">

<b>网厅公告:</b></a>

<div ){

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>