| <title> rolling announcements at the bottom of the page </title> <style type= "Text/css" > Html,body,div ul{margin:0;padding:0;border:0; font-size:12px} #gg {position:fixed;bottom:0;background: #000; Width:100%;height:23px;z-index:9999;opacity:.60;filter:alpha ( OPACITY=60); _bottom:auto;_width:100%;_position:absolute;_top:expression (eval ( Document.documentelement.scrolltop+document.documentelement.clientheight-this.offsetheight-(ParseInt ( this.currentstyle.margintop,10) | | 0)-(parseint (this.currentstyle.marginbottom,10) | | 0));} #gg a {color: #FFF} </style> <script type= "Text/javascript" > (function ($) { $.fn.extend ({ Scroll:function (Opt,callback) { if (!opt) var opt={}; var _this=this.eq (0). Find ("Ul:first"); var lineh=_this.find ("Li:first"). Height (), Line=opt.line?parseint (opt.line,10):p Arseint (This.height ()/lineh,10), Speed=opt.speed?parseint (opt.speed,10): 7000,//scrolling speed, the larger the number, the slower the speed (milliseconds) Timer=opt.timer?parseint (opt.timer,10): 7000;//time interval for scrolling (milliseconds) if (line==0) line=1; var Upheight=0-line*lineh; Scrollup=function () { _this.animate ({ Margintop:upheight },speed,function () { for (i=1;i<=line;i++) { _this.find ("Li:first"). Appendto (_this); } _this.css ({margintop:0}); }); } _this.hover (function () { Clearinterval (Timerid); },function () { Timerid=setinterval ("Scrollup ()", timer); }). Mouseout (); } }) }) (JQuery); $ (document). Ready (function () { $ (". Bulletin"). Scroll ({line:1,speed:1000,timer:5000});//Modify this number to adjust the scrolling time }); </script> <body> <div style= "height:3000px" ></div> <div id= "GG" ><a href= "/" > fixed at the bottom of the page rolling announcements </a></div> </body> |