JavaScript Tip of the Week for April 22, 1996: Tired of using those ugly grey buttons?
for April 22, 1996: Tired of using those ugly grey buttons?
I don't know about you, but I'm sick of those ugly grey form buttons , they can really detract from the look of a page. Well there's one easy way to get around that, as far as I know, and here it is. This method, which actually 'tricks' the browser into thinking that the image is a link, works great in most cases, and you can even add a status bar message to it:
<A HREF = "JavaScript: func()"
onMouseOver="top.window.status='Status bar message'; return true">
<IMG SRC = "../menus/shadowgy.gif"
BORDER = 0 HEIGHT = 100 WIDTH = 75>
</A>
In this case, the function after the <HEAD> statement is:
function func(){
alert("It Worked! Your forms will never be the same!");
}
The image, in this example, in an animated GIF89A called "shadowgy.gif", try out this code by clicking on the the waving guy:


