115S站长学院 TIY
编辑您的代码:
<html> <head> <script type="text/javascript"> function blinklink() { if (!document.getElementById('blink').style.color) { document.getElementById('blink').style.color="red" } if (document.getElementById('blink').style.color=="red") { document.getElementById('blink').style.color="black" } else { document.getElementById('blink').style.color="red" } timer=setTimeout("blinklink()",100) } function stoptimer() { clearTimeout(timer) } </script> </head> <body onload="blinklink()" onunload="stoptimer()"> <a id="blink" href="../index.html" tppabs="http://zz.115s.com/index.html">闪烁的链接</a> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?72e1eb95f3722bd737488ab37f422304"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>
查看结果: