|
|
|
|
DES LIENS
MULTICOLORES animés
Exemple
01 Exemple
02 Exemple
03 Exemple
04
| Très facile à mettre en place et amusant non ? |
|
Tu recopies simplement
dans ta partie HEAD : <SCRIPT LANGUAGE="JavaScript"> function initArray() { for (var i = 0; i < initArray.arguments.length; i++) { this[i] = initArray.arguments[i]; } this.length = initArray.arguments.length; } var colors = new initArray("green","blue","black","purple","red","tan","red"); delay = .5; // secondes link = 0; vlink = 2; function linkDance() { link = (link+1)%colors.length; vlink = (vlink+1)%colors.length; document.linkColor = colors[link]; document.vlinkColor = colors[vlink]; setTimeout("linkDance()",delay*1000); } linkDance(); </SCRIPT> |
ED
05-03-2003