JavaScript text up scrolling function and example
Last Update:2017-02-28
Source: Internet
Author: User
javascript| Function | Scroll up the following are examples and functions:
The following copy of the past to see the effect is known, mainly every 1 seconds to scroll up one line, and then pause for a second! In the supply and demand information, news, and so on inside the application more
<div id= "Icefable11" style= "width:300;" >
<table cellspacing=0 cellpadding=0 width= ' border=0><tr> '
<TD height= ' ><a href= '. /display/productview.asp?id=15353 ' class= ' target=_blank> woolen woolen fabric </a></td>
<TD height= ' ><a href= '. /display/productview.asp?id=15022 ' class= ' target=_blank> St. Linen line </a></td></tr><tr>
<TD height= ' ><a href= '. /display/productview.asp?id=15002 ' class= ' target=_blank> sofa cushion </a></td>
<TD height= ' ><a href= '. /display/productview.asp?id=14998 ' class= ' target=_blank> car cushion </a></td></tr><tr>
<TD height= ' ><a href= '. /display/productview.asp?id=14995 ' class= ' target=_blank> bed blanket </a></td>
<TD height= ' ><a href= '. /display/productview.asp?id=14964 ' class= ' target=_blank> car seat cushion </a></td></tr><tr>
<TD height= ' ><a href= '. /display/productview.asp?id=14963 ' class= ' target=_blank> car cushion </a></td>
<TD height= ' ><a href= '. /display/productview.asp?id=14962 ' class= ' target=_blank> fur Automotive supplies </a></td></tr><tr>
<TD height= ' ><a href= '. /display/productview.asp?id=14919 ' class= ' target=_blank> evening pearl bag </a></td>
<TD height= ' ><a href= '. /display/productview.asp?id=14961 ' class= ' target=_blank> fur bed blanket </a></td></tr><tr>
</tr></table></div>
<div id= "Icefable21" style= "Position:absolute;z-index:1;visibility:hidden" ></div></td>
<script language=javascript>
function Init_srolltext (num) {
marqueesheight=20;
Eval (' Stopscroll ' +num+ ' =false; ')
Eval (' Icefable1 ' +num+ '. scrolltop=0; ')
Eval (' Icefable1 ' +num+ '. style.width=0; ')
Eval (' Icefable1 ' +num+ '. style.height=marqueesheight; ')
Eval (' Icefable1 ' +num+ '. style.overflowx= "visible"; ')
Eval (' Icefable1 ' +num+ '. style.overflowy= "hidden"; ')
Eval (' Icefable1 ' +num+ '. nowrap=true; ')
Eval (' Icefable1 ' +num+ '. Onmouseover=new Function ("Stopscroll ' +num+ ' =true ')";
Eval (' Icefable1 ' +num+ '. Onmouseout=new Function ("Stopscroll ' +num+ ' =false ')";
Eval (' pretop ' +num+ ' = 0; ')
Eval (' currenttop ' +num+ ' = 0; ')
Eval (' stoptime ' +num+ ' = 0; ')
Eval (' Icefable2 ' +num+ '. innerhtml= ";")
Eval (' Icefable2 ' +num+ '. Innerhtml+=icefable1 ' +num+ '. InnerHTML; ')
Eval (' Icefable1 ' +num+ '. Innerhtml=icefable2 ' +num+ '. Innerhtml+icefable2 ' +num+ '. InnerHTML; ')
Eval (' SetInterval ("Scrollup ' +num+ ' ()", 20); ')
}
pretop1=0; currenttop1=0; stoptime1=0;
function ScrollUp1 () {
if (stopscroll1==true) return;
Currenttop1+=1;
if (currenttop1==21) {
Stoptime1+=1;
Currenttop1-=1;
if (stoptime1==80) {
currenttop1=0;
stoptime1=0;
}
}else{
Pretop1=icefable11.scrolltop;
Icefable11.scrolltop+=1;
if (ICEFABLE11.SCROLLTOP==PRETOP1) {
pretop1=0; currenttop1=0; Stoptime1=0;icefable11.scrolltop=0
}
}
}
Init_srolltext (1);
</script>