Does anyone know how to make a picture into a button? I cannot believe that it cannot be done?! I have been trying and trying for the past 2 hours, but I cannot seem to do it. The reason I want to do it is so that I can write on the web site click the image to be taken to another window, rather than have a little button that looks boring. Please - can anyone help me?
The JAVA-Script below is what I am using. It is used to open a smaller window where a password can be entered. The button that appears on the page is represented by the HTML:
“<form>
<input type="button" value="Enter Here" onClick="gateKeeper()"
</form>”
which can be seen below. I believe it is the ““button”” bit that I need to change to a picture.
<SCRIPT LANGUAGE="javascript">
<!--- Hide from tired old browsers
var nifty_little_window = null;
function gateKeeper() {
nifty_little_window = window.open('woodstonclothingcompany.html', 'theKeeper',
'width=350,height=200,resizable=1');
}
// End hiding --->
</SCRIPT>
<form>
<input type="button" value="Enter Here" onClick="gateKeeper()"
</form>
I very much thank you for reading my query and i look for in anticipation to a reply... :-)
Unfortunatley that will try and submit the form instead of allowing you to use a javascript function, you should try just putting an href tag around your image:
Bookmarks