updated removed
[home-automation.git] / right-arrow.html
1 <HEAD>
2 <Style>
3 body {background-color: #4d4c48;}
4 </style>
5 <SCRIPT LANGUAGE="JavaScript">
6 <!-- Beginning of JavaScript -
7
8 var timeout;
9 var x = 0;
10 var step = 2;
11
12 function start1(){
13   x=window.parent.menu.pageXOffset;
14   if (x < 0){
15     x=0;
16   }
17   x=x + step;
18   window.parent.menu.scroll(x,0);
19
20   timeout=setTimeout("start1()",50);
21 }
22
23 function start2(){
24   if (x >=0 ){
25     window.parent.menu.scroll(x,0);
26     x = x - step;
27   }
28
29   timeout=setTimeout("start2()",50);
30 }
31
32 function stop1(){
33   clearTimeout(timeout);
34 }
35
36 function top1(){
37   window.parent.menu.scroll(0,0);
38   x=0;
39 }
40
41
42 // - End of JavaScript - -->
43
44 </SCRIPT>
45 </HEAD>
46 <img src="./icons/right-arrow.png" onMouseDown="stop1();start1();" onMouseup="stop1()" aligh="left">