초간단 스크롤 정보
HTML 초간단 스크롤본문
<html>
<head>
<style type="text/css"><!--
div {border: 1px dotted green;}
p {border: 1px dotted gray;}
--></style>
</head><body>
<div id=scoll style="height:150px;overflow:hidden;">
<p>00000000000000000</p>
<p>11111111111111</p>
<p>22222222222222</p>
<p>3333333333333</p>
<p>4444444444444</p>
<p>5555555555555</p>
<p>66666666666666</p>
<p>77777777777</p>
<p>88888888888888</p>
<p>99999999999999</p>
</div>
<a href=javascript:void(0); onClick="reverse();" >한 번만 누르세요. 2마다 바뀝니다.</a>
<script>
function reverse() { // Reverse the order of the children of Node n
var n= document.all.scoll;
var kids = n.childNodes; // Get the list of children
var numkids = kids.length; // Figure out how many children there are
var c = n.removeChild(kids[0]);
n.appendChild(c);
window.setTimeout("reverse()", 2000);
}
</script>
</body></html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
<head>
<style type="text/css"><!--
div {border: 1px dotted green;}
p {border: 1px dotted gray;}
--></style>
</head><body>
<div id=scoll style="height:150px;overflow:hidden;">
<p>00000000000000000</p>
<p>11111111111111</p>
<p>22222222222222</p>
<p>3333333333333</p>
<p>4444444444444</p>
<p>5555555555555</p>
<p>66666666666666</p>
<p>77777777777</p>
<p>88888888888888</p>
<p>99999999999999</p>
</div>
<a href=javascript:void(0); onClick="reverse();" >한 번만 누르세요. 2마다 바뀝니다.</a>
<script>
function reverse() { // Reverse the order of the children of Node n
var n= document.all.scoll;
var kids = n.childNodes; // Get the list of children
var numkids = kids.length; // Figure out how many children there are
var c = n.removeChild(kids[0]);
n.appendChild(c);
window.setTimeout("reverse()", 2000);
}
</script>
</body></html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
추천
0
0
댓글 1개
전혀 밀리지 않습니다.