Ejemplos en Javascript

Botones con color de background

<HTML>
<HEAD>

<TITLE>Ejemplos Javascript: ejemplo pr???¡ctico </TITLE>


</HEAD>

<BODY bgcolor="white">

<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="23%"><!--webbot bot="HTMLMarkup" startspan --><script>
<!--

/*
rollover buttons script credit: Website Abstraction (www.wsabstract.com) More free JavaScripts here
*/

function change(color){
if (event.srcElement.tagName=="INPUT")
event.srcElement.style.backgroundColor=color
}

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

//-->
</script>

<form onMouseover="change('lightgreen')" onMouseout="change('')">
<input type="button" value="Esempio 01 " style="font-weight:bold"  onClick="jumpto('http://www.myalgorithm.com/script')"><br>
<input type="button" value="Esempio 02 " style="font-weight:bold"  onClick="jumpto('http://www.myalgorithm.com/script')"><br>
<input type="button" value="Esempio 03 " style="font-weight:bold"  onClick="jumpto('http://www.myalgorithm.com/script')">

</form>

<!--webbot bot="HTMLMarkup"
    endspan --></td>
    <td width="77%"><!--webbot bot="HTMLMarkup" startspan -->

<form onMouseover="change('lightblue')" onMouseout="change('')">
<input type="button" value="Esempio 04 " style="font-weight:bold"  onClick="jumpto('http://www.myalgorithm.com/script')"><BR>
<input type="button" value="Esempio 05 " style="font-weight:bold"  onClick="jumpto('http://www.myalgorithm.com/script')"><BR>
<input type="button" value="Esempio 06 " style="font-weight:bold"  onClick="jumpto('http://www.myalgorithm.com/script')">
</form>

<!--webbot bot="HTMLMarkup"
    endspan --></td>
  </tr>
</table>


</body>
</html>

S?lo para MsIE4