오른쪽 스크롤바가 깜빡이는 소스
본문
<html>
<head>
<title>테스트</title>
<script>
var rate = 333;
var DoIt = true
var Color1 = "#FF0000"
var Color2 = "#00FF00"
var Color3 = "#0000FF"
var ColorX = "#C0C0C0"
var i = 0;
function doTriStateRainbow(){
if (document.all){
if (DoIt){
i++;
if (i==1) C = Color1
if (i==2) C = Color2
if (i==3) C = Color3
document.body.style.scrollbarBaseColor = C
if (i>2) i=0;
timer=setTimeout('doTriStateRainbow()', rate)
}else{
document.body.style.scrollbarBaseColor = ColorX
}
}
}
</script>
<body onload="doTriStateRainbow();">
<a href="#" onClick="DoIt=false"><B>Off</B></a> l
<a href="#" onClick="DoIt=true;doTriStateRainbow()"><B>On</B></a>
출처 : http://www.aircon1004.com/data/bbs/board.php?bo_table=pds1&wr_id=145
<head>
<title>테스트</title>
<script>
var rate = 333;
var DoIt = true
var Color1 = "#FF0000"
var Color2 = "#00FF00"
var Color3 = "#0000FF"
var ColorX = "#C0C0C0"
var i = 0;
function doTriStateRainbow(){
if (document.all){
if (DoIt){
i++;
if (i==1) C = Color1
if (i==2) C = Color2
if (i==3) C = Color3
document.body.style.scrollbarBaseColor = C
if (i>2) i=0;
timer=setTimeout('doTriStateRainbow()', rate)
}else{
document.body.style.scrollbarBaseColor = ColorX
}
}
}
</script>
<body onload="doTriStateRainbow();">
<a href="#" onClick="DoIt=false"><B>Off</B></a> l
<a href="#" onClick="DoIt=true;doTriStateRainbow()"><B>On</B></a>
출처 : http://www.aircon1004.com/data/bbs/board.php?bo_table=pds1&wr_id=145
관련링크
댓글목록
등록된 댓글이 없습니다.