Submit Button Changes On Mouseover

[Total: 0    Average: 0/5]

When you mouse over the form button it will change its text.

Body Code:

<form name=exf1>
<input type=button name=b1 value="first value" onmouseover="changeme()">
<script type=text/javascript>
var _a = new Array("First Value","Second Value","Third Value");
function changeme() {
  document.exf1.b1.value = _a[parseInt(Math.random()*3)];

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *