Button Codes
Popup message button
<input value="Click me!" onclick="JavaScript:alert('Thanks... I feel much better now!')" />
|
|
Rollover button with image
Copy and paste the following code into an HTML Snippet:
<a href='Destination URL' target="_top" onmouseover="document.sub_but.src='http://yourdomain.com/onroll.jpg'" onmouseout="document.sub_but.src='http://yourdomain.com/normal.jpg'"> <img src="http://yourdomain.com/normal.jpg" width="281" height="55" border="0" alt="Move your mouse over me" name="sub_but"> </a> And change the parameters as follows... - Destination URL: is the URL you want the button to link to. - target=”_top” opens the link in the same window. If you want it to open in a new window replace _top with _blank - http://yourdomain.com/onroll.jpg is the url of the image that displays when someone points the mouse over it - http://yourdomain.com/normal.jpg is the url of the image displaying when the mouse isn’t over it (note that you need to insert it twice in the code) - Change width and height to fit your case That’s it. |
Roll your mouse over button onmouseover image:
onmouseout image
|