本文实例讲述了jQuery实现内容定时切换效果。分享给大家供大家参考,具体如下:
左右切换内容 * { margin:0; padding:0; word-break:break-all; } body { background:#FFF; color:#333; font:12px/1.6em Helvetica, Arial, sans-serif; } h1, h2, h3, h4, h5, h6 { font-size:1em; } a { color:#039; text-decoration:none; } a:hover { text-decoration:underline; } ul, li { list-style:none; } fieldset, img { border:none; } em, strong, cite, th { font-style:normal; font-weight:normal; } #change{ position:relative; top :20px;left:60px } #hot_ranks { position:relative; width:190px; overflow:hidden; margin:50px; border:1px solid #E0E0E0; background:#F6F8F8; } #hot_ranks h3 { padding:8px 8px 6px 8px; font-size:14px;} #hot_ranks .hot_ranks_list { padding-bottom:6px; } #hot_ranks .normal { display:none; } #hot_ranks .current { display:block; } #hot_ranks ul li { width:95%; height:21px; overflow:hidden; margin:0 auto; line-height:20px; } #hot_ranks ul li em { padding:0 1px 0 3px; } #ranks_change_bar { position:absolute; top:8px; right:2px; } #ranks_change_bar a { display:block; float:left; width:27px; height:13px; overflow:hidden; margin:0 2px; background:url(arrow.gif) no-repeat; text-indent:-9999px; cursor:pointer;} #ranks_change_bar #previous { background-position:0 0; } #ranks_change_bar #next { background-position:-27px 0; } 站点价值排行
- 1 首支北京奥运比赛用枪入境
- 2 "最稳金牌"落选奥运阵容
- 3 微软否认盖茨为看奥运租房
- 4 金晶坐飞机被蛮横夫妇欺侮
- 5 俄美女展示奥运服 奥运兵马俑亮相京城装
- 6 五部奥运题材电影出炉 志愿者微笑迎奥运
- 7 奥运志愿者不乏绝世佳丽 清纯奥运引导员
- 8 奥运饭店正式运行 国际奥委会各部门入驻
上一页下一页
更多关于jQuery相关内容感兴趣的读者可查看本站专题:《jQuery表格(table)操作技巧汇总》、《jQuery拖拽特效与技巧总结》、《jQuery扩展技巧总结》、《jQuery常见经典特效汇总》、《jQuery动画与特效用法总结》、《jquery选择器用法总结》及《jQuery常用插件及用法总结》
希望本文所述对大家jQuery程序设计有所帮助。



