
function doNada(){self.focus()}
// blink speed in miliseconds
var rate = 500;
// the three blink colors
var Color1 = "#FF0000"
var Color2 = "#00FF00"
var Color3 = "#FF00FF"
var Color4 = "#FFcc00"
var Color5 = "#00FFcc"
var Color6 = "#FF00cc"
// the color if/when turned off (no-blink color)
var ColorX = "#FFcc00"
// set this to true for auto start; else, false
var DoIt = true
// do not edit below this line
// ---------------------------
bV = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"
ok = false
var I=0;
function doTriStateRainbowLink(){
ok = true
if ((bNS && bV >= 5) || (bIE && bV >= 4)){
I++;
if (I==1) C = Color1
if (I==2) C = Color2
if (I==3) C = Color3
if (I==4) C = Color4
if (I==5) C = Color5
if (I==6) C = Color6
if (!DoIt) C = ColorX
if (bIE) BlinkLink.style.color=C
if (bNS) document.getElementById('BlinkLink').style.color = C
if (I > 5) I = 0
if (DoIt) timer=setTimeout('doTriStateRainbowLink()', rate)
}
}
function doOnOff(a){
if (ok){
if (a =="off") {DoIt = false}
if ((a =="on")&&(!DoIt)) {
DoIt = true
doTriStateRainbowLink()
}
}
}
</script>
<table border="0" cellpadding="17" cellspacing="0" width="30%">
<tr>
<td width="100%" valign="middle" align="center"><font size="3" face="Arial"><b><a name="BlinkLink" id="BlinkLink" href="#" target="_blank">闪烁的链接</a></b></font></td>
</tr>
</table>
<br>
<table border="0" cellpadding="1" cellspacing="0" width="100%">
<tr>
<td width="50%" valign="middle" align="center"><font face="Arial" size="2"><a href="javascript:doOnOff('off');doNada()">停止</a></font></td>
<td width="50%" valign="middle" align="center"><font face="Arial" size="2"><a href="javascript:doOnOff('on');doNada()">闪烁</a></font></td>
</tr>
</table>

