Subtitle scrolling effect (4)

Source: Internet
Author: User
Tags eval local time visibility
Tip: you can modify some code before running

<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>Subtitle scrolling effect (4)</title></head><body> <style type="text/css"># DivControl {position: absolute; left: 120px; top: Pixel; width: 250px; font-size: 10pt; font-family: arial, helvetica, sans-serif; visibility: hidden ;}# divCont {position: absolute; left: 120px; top: 250px; width: 250px; height: 150px; clip: rect (0px 250px 150px 0px );}. clScroll {position: absolute; font-size: 10pt; font-family: arial, helvetica, sans-serif; visibility: hidden ;}</style><script language="JavaScript" type="text/javascript">Function lib_bwcheck () {// Browsercheck (needed) this. ver = navigator. appVersionthis. agent = navigator. userAgentthis. dom = document. getElementById? 1: 0this. opera5 = this. agent. indexOf ("Opera 5")>-1this. ie5 = (this. ver. indexOf ("MSIE 5")>-1 & this. dom &&! This. opera5 )? 1:0; this. ie6 = (this. ver. indexOf ("MSIE 6")>-1 & this. dom &&! This. opera5 )? 1:0; this. ie4 = (document. all &&! This. dom &&! This. opera5 )? 1:0; this. ie = this. ie4 | this. ie5 | this. ie6this. mac = this. agent. indexOf ("Mac")>-1this. ns6 = (this. dom & parseInt (this. ver)> = 5 )? 1:0; this. ns4 = (document. layers &&! This. dom )? 1:0; this. bw = (this. ie6 | this. ie5 | this. ie4 | this. ns4 | this. ns6 | this. opera5) return this} var bw = new lib_bwcheck () /*************************************** **************************************** ** These are the variables you have to set: **************************************** **************************************** * // The speed of the timeout between each scroll. timSpeed = 50 // The height The container (change this when it scrolls to much or to little) contHeight = 100 /************************************ **************************************** ***** This is the object constructor function, which applies methods and properties to the Cross-browser layer object **************************** **************************************** * ***********/function makescrolobj (obj, nest) {nest = (! Nest )? "": 'Document. '+ nest +'. 'This. el = bw. dom? Document. getElementById (obj): bw. ie4? Document. all [obj]: bw. ns4? Eval (nest + 'document. '+ obj): 0; this.css = bw. dom? Document. getElementById (obj). style: bw. ie4? Document. all [obj]. style: bw. ns4? Eval (nest + 'document. '+ obj): 0; this. height = bw. ns4? This.css.doc ument. height: this. el. offsetHeightthis. top = B _gettopreturn this} // A unit of measure that will be added when setting the position of a layer. var px = bw. ns4 | window. opera? "": "Px"; // Getting the top for the top methodfunction B _gettop () {var gleft = (bw. ns4 | bw. ns6 )? ParseInt(this.css. top): eval(this.css. pixelTop); return gleft;} // Variablesvar scrollTim = 1; var active = 0; /*************************************** **************************************** ** The scroll function. checks what way to scroll and checks if thelayer is not already on top or bottom. **************************************** **************************************** */function scroll (speed) {clearTi Meout (scrollTim) way = speed> 0? 1: 0if ((! Way & oScroll [active]. top ()>-oScroll [active]. height + contHeight) | (oScroll [active]. top () <0 & waygatewaytransfertransferosscroll?active=.css. top = (oScroll [active]. top () + speed) + pxscrollTim = setTimeout ("scroll (" + speed + ")", timSpeed) }// Clears the timeout so the scroll stops, this is called onmouseout. function noScroll () {clearTimeout (scrollTim )} /*************************************** **************************************** ** Changes the active layer. hides the one that's visible andshows the "new" one. also set's the new layers top to0 so it starts at top. **************************************** **************************************** */function changeactive(num?#oscroll=active=.css. visibility = "hidden" active = numoscroll?active=.css. top = 0+pxoscroll?active=.css. visibility = "visible "}/********************************* **************************************** * ******* Initilizes the page, makes a oScroll Array and callthe object constructor. here you can add as your scrolobjects as you want ****************************** **************************************** * *********/function scrollInit () {oScroll = new Array () // You can add and remove scrolobjects here. oScroll [0] = new makescrolobj ('divscroll1', 'divcont') oScroll [1] = new makescrolobj ('divscroll2', 'divcont ') oScroll [2] = new makescrolobj ('divscroll3', 'divcont') oScroll [3] = new makescrolobj('divscroll4', 'divcont'{oscroll%0%.css. left = 0133 pxoscroll1_02.16.css. top = 0+pxoscroll1_02.16.css. visibility = "visible" oControl = new makescrolobj('divcontrol'{ocontrol.css. visibility = "visible "}/********************************* **************************************** * ****** Executes the scrollInit function on pageload. **************************************** **************************************** */onload = scrollInit;</script><div id="divControl">Page 1 page 2 page 3 page 4<br><br>Up/down</div><div id="divCont"><div id="divScroll1" class="clScroll"><br>Before defeating the Grizzlies at home, the Clippers had lost eight of their nine previous matches, even the big story coach Jin Terry had to admit that this was the most gloomy moment he had ever experienced in his coaching career. However, even such a serious crisis did not touch the stubborn nerves of Terry. After defeating the Grizzlies at home, Terry again felt well on his way. Jin Terry must know: "A victory does not mean that the situation has been reversed. There are too many holes in the sinking Clippers that need urgent repair ."<br>Even from the data point of view, the decline of the Clippers is also very obvious, their average score has dropped from 95.7 points to 92.5 points per game, and the hit rate has dropped from 43.8% to 43.3%, the number of rebounds dropped from 43.5 to 41.7 each game. The technical statistics of the Kubernetes fleet are declining in an all-round way. Of course, some data is also rising, such as the number of mistakes. They now make an average of 16.5 mistakes per game.<br>Jin Terry is still insisting that, once the main player of the Clippers can recover from injury, once he can have all the players again, everything will be calm again, the Kubernetes team will become a strong team. All of his arguments are based on the victories of the Kubernetes fleet in only a few hits this season. For example, they beat the Pistons, the Spurs, and the Rockets.<br>I must say that I agree with some of Jin Terry's views, that is, this team is indeed full of potential, and there are indeed a lot of real talents. But you must know that in this league, there are not a few teams with the same potential. Occasionally, a beautiful victory can be achieved by any team, the key to the problem is whether the competition level can be sustained and stable. The Clippers have sufficient conditions to make themselves a strong team, provided they have to find the right way.<br>Miller is a key player, and the minor striker, Jordan, who plays only six times this season due to injury, is also a rare genius. Orvooccandi is also an outstanding player in the rising stage, but it is a big question mark whether the team can retain him for a bad record. Players such as Richards, Mart, piyokski, and Jarich are available, and the pitchers have problems. The poor hit rate of the Clippers is not caused by their lack of pitchers, the trustworthy Chinese player Wang Zhiyong was put on the bench most of the time. He has enough talent to contribute to the Kubernetes fleet, but the premise is that Jin Terry must be aware of this.<br>If you tell me frankly what I think of this team, it may make Jin Terry feel a little uncomfortable. The Kubernetes team was keen to fight independently during the attack and stood in a loose position during the defense. They did not show any signs of being a "strong team" described by Jin Terry. Clearly, if they don't fix their own holes immediately, the ship will sink.<br>If Terry is still dreaming of taking the Clippers into the playoffs, he will have to win more than 28 victories in the remaining matches. This goal clearly makes more people believe that they have already said goodbye to the playoffs, but even so, for this young team, in the future, it will be necessary to show that a team in the playoffs should be qualified. Because they can at least have dignity.<br>After the injured players gradually return to the main lineup, the Kuaidi team has clearly achieved remarkable results in terms of strength. In this case, whether coach Jin Terry can correctly use his team becomes the key to the progress of the Kubernetes fleet.<br>The first thing kingterry wants to do is to improve the team's defense. If it cannot limit the opponent's score, especially to curb the opponent's fast attack, it will become very difficult for the Clippers to achieve an ideal record. In addition, there is also a pitfall problem that should be solved by Jin Terry. Those who think that after one or two of the main players return, the idea that the score will increase significantly is too naive. Terry must understand that there are too many things that need to be changed, and if he still has the desire to win. (Feiying compilation)</div><div id="divScroll2" class="clScroll"><br>Sina Sports news Doha local time on January 13 four o'clock P.M., preparing for the ten match of the Chinese Olympic team for the second training. During this training, Shen Xiangfu, the coach, played a small field competition in group confrontation, and the main lineup emerged. The figure shows the preparations for Zhou Lin. (He Qi/photo)<br></div><div id="divScroll3" class="clScroll">In, Kobe Bryant scored 45 points for the Lakers against the supersonic speed, including a record 12 three-pointers. The Lakers beat the supersonic speed at-98. In, the Lakers vs. server guard, the Lakers won the eighth three-doubles in their career, with 21 points, 10 rebounds, 11 assists, 4 steals, and 3 high hats. The Lakers won the-99 victory over the server guard. In, the Lakers vs. the hot team, with 36 points, 4 assists, 4 steals, and 3 rebounds, the Lakers defeated the Heat.<br></div><div id="divScroll4" class="clScroll">John O'Neill' scored 17 points (including the final 1.7-second winning goal), 13 rebounds, and 3 blocks in VS76 on September 9,. The packets'-overtime victory over 76ers; in January 8, the Walker VS Knicks scored 16 points, 8 rebounds, 2 assists, and 2 steals. The Walker won the game at home. In January 10, the Walker VS magic scored 21 points, 4 rebounds, 4 assists, and 3 steals. The Pacers beat the Magic in-97 hours of the game. In, the Pacers VS the Warriors scored 23 points, 12 rebounds, 5 blocks, and 3 assists, the Pacer defeated the Warriors. This was the best player of O'Neill' last week.</div></div></body></html>
Tip: you can modify some code before running

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.