1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
| <html>
<head>
<script type="text/javascript">
var timer;
function move_up() {
mon_div.scrollTop -=2;
timer=setTimeout('move_up();',0);
}
function move_down() {
mon_div.scrollTop +=2;
timer=setTimeout('move_down();',0);
}
</script>
<style type="text/css">
<!--
#mon_div{
width:230px;
height:30px;
overflow:hidden;
}
#text{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-style: normal;
font-weight: normal;
color: #000000;
text-align: justify;
}
-->
</style>
</head>
<body>
<div id="mon_div">
<div id="text">
<ul>
<li><a href="#">Item 1 </a></li>
<li><a href="#">Item 2 </a></li>
<li><a href="#">Item 3 </a></li>
<li><a href="#">Item 4 </a></li>
<li><a href="#">Item 5 </a></li>
<li><a href="#">Item 6 </a></li>
<li><a href="#">Item 7 </a></li>
<li><a href="#">Item 8 </a></li>
<li><a href="#">Item 9 </a></li>
<li><a href="#">Item 10 </a></li>
</ul>
</div>
</div>
<a href="javascript:;" onMouseOut="clearTimeout(timer);" onmouseover="move_up()">UP</a>
<a href="javascript:;" onMouseOut="clearTimeout(timer);" onmouseover="move_down()">DOWN</a>
</body>
</html> |
Partager