7、闪电闪烁背景代码

7、闪电闪烁背景代码

<!--将以下代码加入HTML<Body></Body>之间-->

<script LANGUAGE="JavaScript">

function blinkOn(){

theWin.document.bgColor = "000000"

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>

<div align="center"><center><p><input TYPE="BUTTON" VALUE="让暴风雨来的更猛烈些吧!" onClick="blinkit(self)">

</p>

</center></div>

</form>

Write a comment

Comments: 0