JavaScript makes a flashing border

Source: Internet
Author: User
Flashing This article describes the use of JS to create a flashing border, demo address: http://www.85time.com home, I only made a flashing border, if you want more than one border can flicker, you can define multiple variables, in this article, I only defined a variable mydowns!
The code is as follows, a total of two files:
Document I: Mydowns.js
<!--
function Flash () {
if (!document.all)
Return
if (mydowns.style.bordercolor== "green")
Mydowns.style.bordercolor= "E7ffa5"
Else
Mydowns.style.bordercolor= "Green"
}
SetInterval ("Flash ()", 800)
-->
Document II: mydowns.htm
<body>
<script src=mydowns.js></script>
<table width=130 id= "mydowns" style= "border:1px solid green" ><tr><td width= "100%" lign= "Center" >
<p style= "text-indent:0; word-spacing:0; margin:0 "align=" center "><font color=" #008000 "size=" 2 "> site column </font>
<p style= "text-indent:0; word-spacing:0; margin:0 "align=" Center ">
<font size= "2" >
<a href= "http://www.85time.com/xajh/" > Laughing and Proud </a>
<a href= "http://www.85time.com/bbs/" target= "_blank" > Netizens forum </a></font> <p style= "text-indent:0; word-spacing:0; margin:0 "align=" Center ">
<font size= "2" >
<a href= "http://www.85time.com/engine.htm" target= "_blank" > Utility engine </a>
<a href= "http://www.85time.com/opus/opus.htm" target= "_blank" > Recommended works </a></font>
<p style= "text-indent:0; word-spacing:0; margin:0 "align=" Center ">
<font size= "2" >
<a href= "http://www.85time.com/gb/" target= "_blank" > Message board </a>
<a href= "http://www.85time.com/chat/" target= "_blank" > Chat room </a></font></td></tr>< /table>
</body>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.