<! Doctype HTML public "-// W3C // dtd html 4.0 transitional // en">
<HTML>
<Head>
<Title> new document </title>
<Meta name = "generator" content = "editplus">
<Meta name = "author" content = "">
<Meta name = "keywords" content = "">
<Meta name = "Description" content = "">
<Script language = "JavaScript">
VaR _ c = _ C1 = _ C2 = NULL;
VaR _ menu = ["aaaaaaaaaaaaaa", "bbbbbbbbbbbbbb", "cccccccccccccc", "weight", "eeeeeeeeeeeeee", "fffffffffff", "gggggggggggggggg"]
VaR isok = false;
Function initmenuhtml ()
{
VaR STR = "";
For (VAR I = 0; I <_ menu. length; I ++)
{
STR + = "<li>" + _ menu [I] + "</LI> ";
}
Return STR;
}
Function Init ()
{
VaR htmlstr = initmenuhtml ();
_ C1 = Document. createelement ("Div ");
_ C2 = Document. createelement ("Div ");
_ C = Document. getelementbyid ("menu ");
_ C1.innerhtml = htmlstr;
_ C2.innerhtml = "& nbsp ;";
_ C. appendchild (_ C1 );
_ C. appendchild (_ C2 );
_ C. style. width = _ c1.offsetwidth;
_ C. style. Height = _ c1.offsetheight;
_ C2.style. Height = _ c1.offsetheight;
_ C. style. width = _ c1.offsetwidth;
_ C. style. overflowy = "hidden ";
_ C. style. width = _ c1.offsetwidth;
_ C. style. Height = _ c1.offsetheight;
_ C. scrolltop = _ c. scrollheight-_ c. offsetheight;
Drop ();
}
Function drop ()
{
If (_ c. scrolltop> 0)
{
_ C. scrolltop-= 4;
SetTimeout ("drop ()", 1 );
}
Else
{
Shock ();
}
}
Function shock ()
{
Down (30 );
}
Function up (N)
{
If (n = 2) return;
If (_ c. scrolltop> 0)
{
_ C. scrolltop --;
SetTimeout (function () {up (n)}, 4 + n );
}
Else
{
Isok = false;
N ++;
Down (30-n * 15 );
}
}
Function down (N)
{
If (typeof (n )! = "Number" | n <15) return;
VaR II = (30-n)/10;
If (_ c. scrolltop <n)
{
_ C. scrolltop ++;
SetTimeout (function () {down (n)}, 4 + II );
}
Else
{
Isok = true;
Up (II );
}
}
Function debug (STR)
{
Document. Body. insertadjacenthtml ("beforeend", STR + "<br/> ");
}
</SCRIPT>
</Head>
<Body onload = "Init ()">
<Div> <a href = "javascript: load ('menu ')"> menu </a> </div>
<Div id = "menu" style = "border: 1px solid black;">
</Div>
</Body>
</Html>