Français
<style> a:hover{color:#036;} </style> <script language="javascript"> var rate = 20; var obj; var acte = 0; var ormeH = 0; var ormeS = 128; var ormeV = 255; var clrOrg; varIDMinuterie ; if (navigator.appName.indexOf("Microsoft",0) != -1 && parseInt(navigator.appVersion) >= 4) { Navigateur = true; } else { Navigateur = false ; } if (Navigateur) { document.onmouseover = doRainbowAnchor; document.onmouseout = stopRainbowAnchor; } function doRainbow() { if (Navigateur && act != 1) { act = 1; obj = event.srcElement ; clrOrg = obj.style.color; TimerID = setInterval("ChangeColor()",100); } } function stopRainbow() { if (Navigateur && act != 0) { obj.style.color = clrOrg; clearInterval(TimerID); acte = 0 ; } } function doRainbowAnchor() { if (Navigateur && act != 1) { obj = event.srcElement; while (obj.tagName != 'A' && obj.tagName != 'BODY') { obj = obj.parentElement; if (obj.tagName == 'A' || obj.tagName == 'BODY') break; } if (obj.tagName == 'A' && obj.href != '') { act = 1; clrOrg = obj.style.color; TimerID = setInterval("ChangeColor()",100); } } } function stopRainbowAnchor() { if (Navigateur && act != 0) { if (obj.tagName == 'A') { obj.style.color = clrOrg; clearInterval(TimerID); acte = 0 ; } } } function ChangeColor() { obj.style.color = makeColor(); } function makeColor() { if (elmS == 0) { elmR = elmV; ormeG = ormeV; ormeB = ormeV; } autre { t1 = elmV; t2 = (255 - ormeS) * ormeV / 255 ; t3 = ormeH % 60 ; t3 = (t1 - t2) * t3 / 60 ; si (elmH < 60) { elmR = t1 ; ormeB = t2; ormeG = t2 + t3 ; } sinon si (elmH < 120) { elmG = t1; ormeB = t2; ormeR = t1 - t3 ; } sinon si (elmH < 180) { elmG = t1; ormeR = t2; ormeB = t2 + t3 ; } sinon si (elmH < 240) { elmB = t1; ormeR = t2; ormeG = t1 - t3 ; } sinon si (elmH < 300) { elmB = t1; ormeG = t2; ormeR = t2 + t3 ; } sinon si (elmH < 360) { elmR = t1; ormeG = t2; ormeB = t1 - t3 ; } sinon { elmR = 0; ormeG = 0 ; ormeB = 0; } } elmR = Math.floor(elmR); elmG = Math.floor(elmG); ormeB = Math.floor(ormeB); clrRGB = '#' + elmR.toString(16) + elmG.toString(16) + elmB.toString(16); ormeH = ormeH + taux ; si (elmH >= 360) elmH = 0 ; renvoie clrRVB ; } </script><div> <a href="##">鼠标移到这里观看效果</a> </div>