// [1단계] 아래의 소스코드를 <HEAD>와 </HEAD> 사이에 붙여 넣으세요
<script language="JavaScript">
<!--
function blinkOn(){
theWin.document.bgColor = "FFCC00" // 반짝이는 효과를 보여줄 배경화면 색상
nTimes++
JSCTimeOutID = window.setTimeout("blinkOff()",50);
}
function blinkOff(){
theWin.document.bgColor = "FFFFFF" // 원래의 배경색상
if (nTimes < 3)
JSCTimeOutID = window.setTimeout("blinkOn()",50);
else theWin.history.go(0)
}
function blinkit(aWin){
nTimes = 0
theWin = aWin
JSCTimeOutID = window.setTimeout("blinkOn()",50);
}
// -->
</script>
// [2단계] 아래의 코드를 원하는 위치에 복사 해 넣으세요
<form>
<input type="button" valuE="배경화면이 번쩍번쩍" onClick="blinkit(self)">
</form>
// 여기까지<!---->
<script language="JavaScript">
<!--
function blinkOn(){
theWin.document.bgColor = "FFCC00" // 반짝이는 효과를 보여줄 배경화면 색상
nTimes++
JSCTimeOutID = window.setTimeout("blinkOff()",50);
}
function blinkOff(){
theWin.document.bgColor = "FFFFFF" // 원래의 배경색상
if (nTimes < 3)
JSCTimeOutID = window.setTimeout("blinkOn()",50);
else theWin.history.go(0)
}
function blinkit(aWin){
nTimes = 0
theWin = aWin
JSCTimeOutID = window.setTimeout("blinkOn()",50);
}
// -->
</script>
// [2단계] 아래의 코드를 원하는 위치에 복사 해 넣으세요
<form>
<input type="button" valuE="배경화면이 번쩍번쩍" onClick="blinkit(self)">
</form>
// 여기까지<!---->
'java script' 카테고리의 다른 글
배경색이 어지럽게 바뀝니다 (0) | 2011.01.07 |
---|---|
버튼 클릭으로 배경색을 바꿔 줍니다 (0) | 2011.01.07 |
간단한 폼메일 스크립트 (0) | 2011.01.07 |
북마크(줄겨찾기)에 추가 시키기 (0) | 2011.01.07 |
스패머들로부터 이메일 주소를 보호합시다 (0) | 2011.01.07 |