[新着] Webテンプレートを仮オープンしました
<html>
<head>
<title></title>
<script type="text/javascript">
function hr_sc(Vec){
var O = document.getElementById('a0');
O.scrollLeft = (Vec>0)?O.scrollWidth:0;
}
</script>
</head>
<body>
<div id="a0" style="overflow: hidden;height:20px;width:200px;white-space:nowrap;">LEFTてすとてすとてすとてすとてすとてすとてすとてすとてすとてすとてすとてすとRIGHT</div>
<p>
<span onmouseover="hr_sc(1);">→</span>
<span onmouseover="hr_sc(-1);">←</span>
</p>
</body>
</html><html>
<head>
<title></title>
<script type="text/javascript">
var i = 0;
function hr_sc(x){
if(x==0) i=i;
else i=-i;
var O = document.getElementById('a0');
O.scrollLeft = i;
i++;
}
function func(x) {
hr_sc(x);
setTimeout("func("+x+")", 10);
}
</script>
</head>
<body>
<div id="a0" style="overflow: hidden;height:20px;width:200px;white-space:nowrap;">LEFTてすとてすとてすとてすとてすとてすとてすとてすとてすとてすとてすとてすとRIGHT</div>
<p>
<span onmouseover="func(0);">→</span>
<span onmouseover="func(1);">←</span>
</p>
</body>
</html><html>
<head>
<title></title>
<script type="text/javascript">
var i = 0;
var isscrolling = false;
function hr_sc(x){
var O = document.getElementById('a0');
O.scrollLeft = i;
if(x==0) i++;
else i--;
}
function func(x) {
hr_sc(x);
Timer_id = setTimeout("func("+x+")", 1);
}
</script>
</head>
<body>
<div id="a0" style="overflow: hidden;height:20px;width:200px;white-space:nowrap;">LEFTてすとてすとてすとてすとてすとてすとてすとてすとてすとてすとてすとてすとRIGHT</div>
<p>
<span onmouseover="func(0);" onmouseout="clearTimeout(Timer_id);" style="cursor: pointer;">→</span>
<span onmouseover="func(1);" onmouseout="clearTimeout(Timer_id);" style="cursor: pointer;">←</span>
</p>
</body>
</html>