updated removed
[home-automation.git] / left-arrow.html
1 <HEAD>
2 <Style>
3 body {background-color: #4d4c48;}
4 </style>
5
6 <SCRIPT LANGUAGE="JavaScript">
7 <!-- Beginning of JavaScript -
8
9 var timeout;
10 var x = 0;
11 var step = 2;
12
13 function start1(){
14   x=window.parent.menu.pageXOffset;
15   if (x < 0){
16     x=0;
17   }
18   x=x - step;
19   window.parent.menu.scroll(x,0);
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 </SCRIPT>
44 </HEAD>
45
46
47 <img src="./icons/left-arrow.png" onMouseDown="stop1();start1();" onMouseup="stop1()" align="right"><br>
48
49