ลำดับตอนที่ #3
คืนค่าการตั้งค่าทั้งหมด
คุณแน่ใจว่าต้องการคืนค่าการตั้งค่าทั้งหมด ?
ลำดับตอนที่ #3 : โค้ดต่างๆที่(เกือบ)จำเปน
<style> table {background:none;} td {background:none;} </style>
โค้ดไดใสค่ะ
<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.onmouseover = 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;
}
</SCRIPT>
ชี้ลิ้งแล้วจะเปนรุ้งอะค่ะ
<meta http-equiv="Content-Language" content="th">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<STYLE ty<html dir="rtl"> pe=text/css>
A:link { color: #63B8FF; text-decoration:none}
A:visited {color: #63B8FF; text-decoration: none}
A:hover {color: #63B8FF; text-decoration: underline}
</STYLE>
<STYLE TYPE="TEXT/CSS"><!--
a:link { color: #63B8FF; text-decoration: none}
a:visited { color: #63B8FF; text-decoration: none}
a:active { color: #63B8FF; text-decoration: none}
a:hover { color: #63B8FF; text-decoration: none;FILTER:fliph; HEIGHT:0}
//--></STYLE>
ตัวหนังสือ(ลิ้ง)กลับด้าน
<style>
BODY { scrollbar-face-color:สี;
scrollbar-shadow-color:สี;
scrollbar-highlight-color:สี;
scrollbar-3dlight-color:สี;
scrollbar-darkshadow-color:สี;
scrollbar-track-color:สี;
scrollbar-arrow-color:สี;
-->}
</style>
สกอบา
<style type="text/css">
table { background: none; font-family:Tahoma; font-size: 10pt }
td { background: none; font-family:Tahoma; font-size: 10pt }
input { background:url(); color:#โค้สสี่; font-family:Tahoma; font-size: 10pt }
textarea { width:300;height:200;
background:url( URL รุป); color:โค้สสี; font-family:Tahoma; font-size: 10pt }
</style>
<STYLE type=TEXT/CSS>
.skin0 {position:absolute;text-align:left;width:180px;border:000000px solid;background-color:000000;font-family:System;font-size: 4pt;line-height:20px;cursor:help;visibility:hidden}
.menuitems {padding-left:5px;padding-right:5px;}
</STYLE>
กล่องคอมเม้น
<style type="text/css"><!--
body,tr,td { font-size: 10pt;font-family:Tahoma;color:#โค้สสี;}
a:link { color:โค้สสี; text-decoration:none}
A:visited { color : โค้สสี; text-decoration:none}
a:hover { color: โค้สสี่;text-decoration:none; border: dashed #โค้สสี 3px; background:none;cursor:help;}
-->
</style>
ชี้ลิ้งแล้วมีกรอบ
<meta http-equiv="Content-Language" content="th">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<STYLE ty<html dir="rtl"> pe=text/css>
A:link { color: #63B8FF; text-decoration:none}
A:visited {color: #63B8FF; text-decoration: none}
A:hover {color: #63B8FF; text-decoration: underline}
</STYLE>
<STYLE TYPE="TEXT/CSS"><!--
a:link { color: #63B8FF; text-decoration: none}
a:visited { color: #63B8FF; text-decoration: none}
a:active { color: #63B8FF; text-decoration: none}
a:hover { color: #63B8FF; text-decoration: none;FILTER:fliph; HEIGHT:0}
//--></STYLE>
ชี้ลิ้งแล้วลิ้งกลับด้าน
** ถ้าจะดูโค้ดสีไปที่เวบนี้นะจ่ะ **
http://sukumal.brinkster.net/meaploy/angel/color.html
โค้ดไดใสค่ะ
<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.onmouseover = 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;
}
</SCRIPT>
ชี้ลิ้งแล้วจะเปนรุ้งอะค่ะ
<meta http-equiv="Content-Language" content="th">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<STYLE ty<html dir="rtl"> pe=text/css>
A:link { color: #63B8FF; text-decoration:none}
A:visited {color: #63B8FF; text-decoration: none}
A:hover {color: #63B8FF; text-decoration: underline}
</STYLE>
<STYLE TYPE="TEXT/CSS"><!--
a:link { color: #63B8FF; text-decoration: none}
a:visited { color: #63B8FF; text-decoration: none}
a:active { color: #63B8FF; text-decoration: none}
a:hover { color: #63B8FF; text-decoration: none;FILTER:fliph; HEIGHT:0}
//--></STYLE>
ตัวหนังสือ(ลิ้ง)กลับด้าน
<style>
BODY { scrollbar-face-color:สี;
scrollbar-shadow-color:สี;
scrollbar-highlight-color:สี;
scrollbar-3dlight-color:สี;
scrollbar-darkshadow-color:สี;
scrollbar-track-color:สี;
scrollbar-arrow-color:สี;
-->}
</style>
สกอบา
<style type="text/css">
table { background: none; font-family:Tahoma; font-size: 10pt }
td { background: none; font-family:Tahoma; font-size: 10pt }
input { background:url(); color:#โค้สสี่; font-family:Tahoma; font-size: 10pt }
textarea { width:300;height:200;
background:url( URL รุป); color:โค้สสี; font-family:Tahoma; font-size: 10pt }
</style>
<STYLE type=TEXT/CSS>
.skin0 {position:absolute;text-align:left;width:180px;border:000000px solid;background-color:000000;font-family:System;font-size: 4pt;line-height:20px;cursor:help;visibility:hidden}
.menuitems {padding-left:5px;padding-right:5px;}
</STYLE>
กล่องคอมเม้น
<style type="text/css"><!--
body,tr,td { font-size: 10pt;font-family:Tahoma;color:#โค้สสี;}
a:link { color:โค้สสี; text-decoration:none}
A:visited { color : โค้สสี; text-decoration:none}
a:hover { color: โค้สสี่;text-decoration:none; border: dashed #โค้สสี 3px; background:none;cursor:help;}
-->
</style>
ชี้ลิ้งแล้วมีกรอบ
<meta http-equiv="Content-Language" content="th">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<STYLE ty<html dir="rtl"> pe=text/css>
A:link { color: #63B8FF; text-decoration:none}
A:visited {color: #63B8FF; text-decoration: none}
A:hover {color: #63B8FF; text-decoration: underline}
</STYLE>
<STYLE TYPE="TEXT/CSS"><!--
a:link { color: #63B8FF; text-decoration: none}
a:visited { color: #63B8FF; text-decoration: none}
a:active { color: #63B8FF; text-decoration: none}
a:hover { color: #63B8FF; text-decoration: none;FILTER:fliph; HEIGHT:0}
//--></STYLE>
ชี้ลิ้งแล้วลิ้งกลับด้าน
** ถ้าจะดูโค้ดสีไปที่เวบนี้นะจ่ะ **
http://sukumal.brinkster.net/meaploy/angel/color.html
เก็บเข้าคอลเล็กชัน
ความคิดเห็น