free hosting
image hosting
hosting reseller
online album
e-shop
famous people
Blinking Link
This script lets you create a hyperlink that blinks between 2 different colours.
Paste the code below in the
head
section of your page:
Add this section
inside your body tag
with your other body requirements:
And this section in the body itself:
Blinking link
How It Works
In the body section, the link on the page is given an ID,
blink
.
When the page is loaded, the function
blinklink
is called.
This checks to see what colour is currently assigned to the link with the ID "blink".
If that colour is red, it's changed to black. And vice versa.
The blink rate is set by the setTimeout timer, and may be modified as required.
When the user leaves the page, the unload command clears the timer.
Try It Out
Blinking link
© 2001 CyberSchool