The Html and JS Code is as follows:
Copy codeThe Code is as follows:
<Div id = "newsOne" onmouseover = "CleartTimeInterVal ();" onmouseout = "resetInterVal ();"
Style = "position: absolute; width: 100px;">
<A href = "http://www.jb51.net" target = "_ blank"> script house </a>
</Div>
<Script type = 'text/javascript '>
Var newsOne = document. getElementById ("newsOne ");
NewsOne. style. bottom = 0;
NewsOne. style. left = window. screen. availWidth-100;
Var bottom = 0;
Function newsScroll (){
If (bottom> (window. screen. availHeight-window. screenTop )){
Bottom = 0;
NewsOne. style. bottom = 0;
}
Else {
Bottom = bottom + 15;
NewsOne. style. bottom = bottom;
}
}
Var timeid = setInterval (newsscscroll, 300 );
Function CleartTimeInterVal (){
ClearInterval (timeid );
}
Function resetInterVal (){
Timeid = setInterval (newsscscroll, 300 );
}
</Script>
Online running:
Foot home
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]