Link đổi màu tự động1.. Welcome to ThangBomBh Homepages!
Trang 1Link đổi màu tự động
1 <script LANGUAGE="JavaScript">
2.
3 <! This script and many more are available free online at >
4 <! The JavaScript Source!! http://thangbombh.sg.st >
5.
6 <! Begin
7 function initArray() {
8 for (var i = 0; i < initArray.arguments.length; i++) {
9 this[i] = initArray.arguments[i];
11 this.length = initArray.arguments.length;
13 var colors = new initArray(
14 "red",
15 "blue",
16 "green",
17 "purple",
18 "black",
19 "tan",
20 "red");
21 delay = 5; // seconds
22 link = 0;
23 vlink = 2;
24 function linkDance() {
25 link = (link+1)%colors.length;
26 vlink = (vlink+1)%colors.length;
27 document.linkColor = colors[link];
28 document.vlinkColor = colors[vlink];
29 setTimeout("linkDance()",delay*1000);
31 linkDance();
32 // End >
33 </script>
34 <p><a href="http://thangbombh.sg.st">Welcome to ThangBomBh Homepages !
</a></p>
35.
36 <! Be sure to include some links in your HTML page! >
37.
<! Script Size: 0.98 KB >