การกดปุ่มนำเมาส์ไปวางแล้วเปลี่ยนสีแบบง่ายๆ

copy ส่วนข้างล่างนี้ ไปได้เลยครับ

<html>
<head>
<style>
<!--

.initial2{font-weight:bold;background-color:lime}
//-->
</style>

<script>
<!--

function change(color){
var el=event.srcElement
if (el.tagName=="INPUT"&&el.type=="button")
event.srcElement.style.backgroundColor=color
}

function jumpto2(url){
window.location=url
}

//-->
</script>
</head>

<body>
<form onMouseover="change('yellow')" onMouseout="change('lime')">
<input type="button" value="Artistnet " class="initial2" onClick="jumpto2
('http://www.geocities.com/artistnet_us')">
<input type="button" value="Geocities " class="initial2" onClick="jumpto2
('http://www.Geocities.com')">
<input type="button" value="Sanook " class="initial2" onClick="jumpto2
('http://www.sanook.com')">
</form>

</body>
</html>

Copy Right © 2002"JesuswOrK" , All rights reserved.
These web sites are best viewed with an 800 x 600 screen resolution.
Web site designed by webmaster
  tel : (054) - 312281