UNPKG

super-slide

Version:

一款用于解决网站多数特效展示问题的软件

75 lines (59 loc) 3.95 kB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Language" content="zh-CN"> <meta name="Keywords" content="SuperSlide,jQuery文字滚动特效,javascript文字滚动特效"> <meta name="Description" content="SuperSlide 致力于解决网站大部分特效展示问题,使网站代码规范整洁,方便维护更新。网站上常用的“焦点图/幻灯片”、“Tab标签切换”、“图片滚动”、“无缝滚动”等等只需要一个SuperSlide即可解决!还可以多个SuperSlide组合创造更多效果"> <title>SuperSlide - 文字滚动特效-上</title> <script type="text/javascript" src="../jquery1.42.min.js"></script><script type="text/javascript" src="../jquery.SuperSlide.2.1.3.js"></script> </head> <body> <style type="text/css"> /* css 重置 */ *{margin:0; padding:0; list-style:none; } body{ background:#fff; font:normal 12px/22px 宋体; } img{ border:0; } a{ text-decoration:none; color:#333; } a:hover{ color:#1974A1; } /* 本例子css */ .txtScroll-top{ width:450px; overflow:hidden; position:relative; border:1px solid #ccc; } .txtScroll-top .hd{ overflow:hidden; height:30px; background:#f4f4f4; padding:0 10px; } .txtScroll-top .hd .prev,.txtScroll-top .hd .next{ display:block; width:9px; height:5px; float:right; margin-right:5px; margin-top:10px; overflow:hidden; cursor:pointer; background:url("images/icoUp.gif") no-repeat;} .txtScroll-top .hd .next{ background:url("images/icoDown.gif") no-repeat; } .txtScroll-top .hd ul{ float:right; overflow:hidden; zoom:1; margin-top:10px; } .txtScroll-top .hd ul li{ float:left; width:9px; height:9px; overflow:hidden; margin-right:5px; text-indent:-999px; cursor:pointer; background:url("images/icoCircle.gif") 0 -9px no-repeat; } .txtScroll-top .hd ul li.on{ background-position:0 0; } .txtScroll-top .bd{ padding:15px; } .txtScroll-top .infoList li{ height:24px; line-height:24px; } .txtScroll-top .infoList li .date{ float:right; color:#999; } </style> <div class="txtScroll-top"> <div class="hd"> <a class="next"></a> <ul></ul> <a class="prev"></a> <span class="pageState"></span> </div> <div class="bd"> <ul class="infoList"> <li><span class="date">2011-11-11</span><a href="http://www.SuperSlide2.com" target="_blank">中国打破了世界软件巨头规则</a></li> <li><span class="date">2011-11-11</span><a href="http://www.SuperSlide2.com" target="_blank">口语:会说中文就能说英语!</a></li> <li><span class="date">2011-11-11</span><a href="http://www.SuperSlide2.com" target="_blank">农场摘菜不如在线学外语好玩</a></li> <li><span class="date">2011-11-11</span><a href="http://www.SuperSlide2.com" target="_blank">数理化老师竟也看学习资料?</a></li> <li><span class="date">2011-11-11</span><a href="http://www.SuperSlide2.com" target="_blank">学英语送ipad2,45天突破听说</a></li> <li><span class="date">2011-11-11</span><a href="http://www.SuperSlide2.com" target="_blank">学外语,上北外!</a></li> <li><span class="date">2011-11-11</span><a href="http://www.SuperSlide2.com" target="_blank">那些无法理解的荒唐事</a></li> </ul> </div> </div> <script type="text/javascript"> jQuery(".txtScroll-top").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"top",autoPlay:true,vis:5}); </script> </body> </html> <script type="text/javascript"> //百度统计代码 var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fa630f96b6a9dd549675d26373853f7f1' type='text/javascript'%3E%3C/script%3E")); </script>