Group Blog
 
<<
Ҿѹ 2549
 
 1234
567891011
12131415161718
19202122232425
262728 
 
18 Ҿѹ 2549
 
All Blogs
 

ԧ

¡ôԵѺ web http://www.yimwhan.com/board/show.php?user=MINAO&topic=21&Cate=7

< SCRIPT language=JavaScript>
var rate = 20; // Increase amount(The degree of the transmutation)
var obj; // The object which event occured in
var act = 0; // Flag during the action
var elmH = 0; // Hue
var elmS = 128; // Saturation
var elmV = 255; // Value
var clrOrg; // A color before the change
var TimerID; // Timer ID
if (navigator.appName.indexOf("Microsoft",0) != -1 && parseInt(navigator.appVersion) >= 4) {
Browser = true;
} else {
Browser = false;
}
if (Browser) {
document. = doRainbowAnchor;
document.onmouseout = stopRainbowAnchor;
}
function doRainbow()
{
if (Browser && act != 1) {
act = 1;
obj = event.srcElement;
clrOrg = obj.style.color;
TimerID = setInterval("ChangeColor()",100);
}
}
function stopRainbow()
{
if (Browser && act != 0) {
obj.style.color = clrOrg;
clearInterval(TimerID);
act = 0;
}
}
function doRainbowAnchor()
{
if (Browser && 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 (Browser && act != 0) {
if (obj.tagName == 'A') {
obj.style.color = clrOrg;
clearInterval(TimerID);
act = 0;
}
}
}
function ChangeColor()
{
obj.style.color = makeColor();
}
function makeColor()
{
if (elmS == 0) {
elmR = elmV; elmG = elmV; elmB = elmV;
}
else {
t1 = elmV;
t2 = (255 - elmS) * elmV / 255;
t3 = elmH % 60;
t3 = (t1 - t2) * t3 / 60;
if (elmH < 60) {
elmR = t1; elmB = t2; elmG = t2 + t3;
}
else if (elmH < 120) {
elmG = t1; elmB = t2; elmR = t1 - t3;
}
else if (elmH < 180) {
elmG = t1; elmR = t2; elmB = t2 + t3;
}
else if (elmH < 240) {
elmB = t1; elmR = t2; elmG = t1 - t3;
}
else if (elmH < 300) {
elmB = t1; elmG = t2; elmR = t2 + t3;
}
else if (elmH < 360) {
elmR = t1; elmG = t2; elmB = t1 - t3;
}
else {
elmR = 0; elmG = 0; elmB = 0;
}
}
elmR = Math.floor(elmR);
elmG = Math.floor(elmG);
elmB = Math.floor(elmB);
clrRGB = '#' + elmR.toString(16) + elmG.toString(16) + elmB.toString(16);
elmH = elmH + rate;
if (elmH >= 360)
elmH = 0;
return clrRGB;
}







 

Create Date : 18 Ҿѹ 2549
10 comments
Last Update : 18 Ҿѹ 2549 11:08:23 .
Counter : 600 Pageviews.

 

ѹٻΌ͹ͧ

 

: Թշͧ 18 Ҿѹ 2549 12:32:35 .  

 

 

: ;ѹ 18 Ҿѹ 2549 12:51:56 .  

 

[͡¨ѧ ҪѺ

 

: Tree (treemon ) 20 Ҿѹ 2549 14:53:08 .  

 

¨ѧѺ

 

: Xiaoling 1 չҤ 2549 23:21:04 .  

 

繤ͺٻ.....ͺѧºͤس

 

: 7 չҤ 2549 0:34:14 .  

 

ʴդ

 

: my_oom (my_oom ) 21 Ҥ 2549 10:46:17 .  

 

Ҵത

 

: IP: 124.121.154.127 24 ¹ 2551 16:13:46 .  

 

¤

 

: IP: 124.121.123.74 15 ѹҤ 2551 18:19:12 .  

 

 

: IP: 113.53.170.236 7 ¹ 2552 10:18:22 .  

 

*-*

 

: 555+ IP: 117.47.88.241 25 ¹ 2552 0:41:44 .  

:
Comment :
  * code html 觢ͤ੾Ҫԡ
 
觢ͤ
س׹ѹ觢ͤ


kimji
Location :


[ Profile ]

ԻҢͧ Blog [?]
ҡͤѧ
Rss Feed
Smember
Դ͡ : 1 [?]




------------ ----
..ҤҴѧèҡѹ
ùѡ˹
ѹ˭ԧ
觡仡
ҧá͹
´չ
....ҹ..
------ ---
-- -- -- -- -- ---
Friends' blogs
[Add kimji's blog to your web]
Links
 

 Pantip.com | PantipMarket.com | Pantown.com | © 2004 BlogGang.com allrights reserved.