10 if (navigator.appName.indexOf("Microsoft",0) != -1 && parseInt(navigator.appVersion) >= 4) {
\r
17 document.onmouseover = doRainbowAnchor;
\r
18 document.onmouseout = stopRainbowAnchor;
\r
21 function doRainbow()
\r
23 if (Browser && act != 1) {
\r
25 obj = event.srcElement;
\r
26 clrOrg = obj.style.color;
\r
27 TimerID = setInterval("ChangeColor()",100);
\r
31 function stopRainbow()
\r
33 if (Browser && act != 0) {
\r
34 obj.style.color = clrOrg;
\r
35 clearInterval(TimerID);
\r
40 function doRainbowAnchor()
\r
42 if (Browser && act != 1) {
\r
43 obj = event.srcElement;
\r
45 while (obj.tagName != 'A' && obj.tagName != 'BODY') {
\r
46 obj = obj.parentElement;
\r
47 if (obj.tagName == 'A' || obj.tagName == 'BODY')
\r
51 if (obj.tagName == 'A' && obj.href != '') {
\r
53 clrOrg = obj.style.color;
\r
54 TimerID = setInterval("ChangeColor()",100);
\r
59 function stopRainbowAnchor()
\r
61 if (Browser && act != 0) {
\r
62 if (obj.tagName == 'A') {
\r
63 obj.style.color = clrOrg;
\r
64 clearInterval(TimerID);
\r
70 function ChangeColor()
\r
72 obj.style.color = makeColor();
\r
75 function makeColor()
\r
79 elmR = elmV; elmG = elmV; elmB = elmV;
\r
83 t2 = (255 - elmS) * elmV / 255;
\r
85 t3 = (t1 - t2) * t3 / 60;
\r
88 elmR = t1; elmB = t2; elmG = t2 + t3;
\r
90 else if (elmH < 120) {
\r
91 elmG = t1; elmB = t2; elmR = t1 - t3;
\r
93 else if (elmH < 180) {
\r
94 elmG = t1; elmR = t2; elmB = t2 + t3;
\r
96 else if (elmH < 240) {
\r
97 elmB = t1; elmR = t2; elmG = t1 - t3;
\r
99 else if (elmH < 300) {
\r
100 elmB = t1; elmG = t2; elmR = t2 + t3;
\r
102 else if (elmH < 360) {
\r
103 elmR = t1; elmG = t2; elmB = t1 - t3;
\r
106 elmR = 0; elmG = 0; elmB = 0;
\r
110 elmR = Math.floor(elmR);
\r
111 elmG = Math.floor(elmG);
\r
112 elmB = Math.floor(elmB);
\r
114 clrRGB = '#' + elmR.toString(16) + elmG.toString(16) + elmB.toString(16);
\r
116 elmH = elmH + rate;
\r