最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

jQuery循環(huán)滾動(dòng)新聞列表示例代碼

 更新時(shí)間:2014年06月17日 09:23:57   投稿:whsnow  
jquery實(shí)現(xiàn)點(diǎn)擊公告的上一條下一條來(lái)查看滾動(dòng)條,示例代碼如下,希望對(duì)大家有所幫助
最近由于項(xiàng)目原因,學(xué)習(xí)了下jquery,實(shí)現(xiàn)了一個(gè)小小的功能,就是點(diǎn)擊公告的上一條下一條來(lái)查看滾動(dòng)條。具體代碼如下:
復(fù)制代碼 代碼如下:

<!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" border="0" id='gg_p' style="cursor: pointer;" title="上一條"/>
<img src="break_btn.jpg" border="0" id='gg_s' style="cursor: pointer;" title="暫停"/>
<img src="next_btn.jpg" border="0" id='gg_n' style="cursor: pointer;" title="下一條"/>
</li>
<li class="gg_info">
<a class="aa" style="cursor:hand" href="/notice/">
<b>網(wǎng)廳公告:</b></a>
<div id="dt_gg" style="display: none; float: left; width: 450px;">
<ul style="height:25px;overflow:hidden;">
<li style="width: 300px">
<a class="aa" href="/cms/web/default/new/notice/50514.shtml" title="關(guān)于調(diào)整全省固定電話(huà)本地電話(huà)網(wǎng)營(yíng)業(yè)區(qū)間通話(huà)費(fèi)上限標(biāo)準(zhǔn)的通知">
<span style="width:300px;">關(guān)于調(diào)整全省固定電話(huà)本地電話(huà)網(wǎng)</span>
</a>
<span style="width:100px;">[2010-06-24]</span>
</li>
<li style="width: 300px">
<a class="aa" href="/cms/web/default/new/notice/50515.shtml" title="中國(guó)電信機(jī)場(chǎng)/車(chē)站貴賓服務(wù)電子化認(rèn)證公告">
<span style="width:300px;">中國(guó)電信機(jī)場(chǎng)/車(chē)站貴賓服務(wù)電子</span>
</a>
<span style="width:100px;">[2010-06-24]</span>
</li>
</ul>
</div>
</li>
</div>
<script type="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>

相關(guān)文章

最新評(píng)論

交城县| 辽阳县| 香河县| 昭苏县| 茶陵县| 沙湾县| 明光市| 萝北县| 阿图什市| 当阳市| 安宁市| 德惠市| 花垣县| 营山县| 左权县| 龙南县| 壶关县| 海城市| 宁海县| 兴安县| 全州县| 郁南县| 布拖县| 大姚县| 东乌珠穆沁旗| 泌阳县| 会东县| 东兰县| 安岳县| 自贡市| 祥云县| 宁远县| 锡林郭勒盟| 田东县| 盐城市| 清苑县| 通江县| 吴江市| 江川县| 宜宾县| 桃江县|