turfbult
Jun 6th, 2001, 05:22 AM
Hello,
I have a website using buttons to add products to a shopping basket.
I now want to replace the normal, dull buttons with an image, but cannot get it to work.
This is the buttons code....(using the normal button)
When clicking on the button it calls some Jscript sending 2 variables to the function!!
<input type="button" value="Add ->"
onClick="copySelected(oLastCombo,this.form.select2)"
style="font-family: monospace; font-size: 8pt">
This is what I tried.......(using an image)
<img src="file:///C:/New/images/add.gif"
onClick="copySelected(oLastCombo,this.form.select2)" width="94" height="21"
alt="add.gif (463 bytes)">
I get this error...
"this.form.select2 is not an object" when using the image as a button.
PLEASE HELP.
Thanks
T
I have a website using buttons to add products to a shopping basket.
I now want to replace the normal, dull buttons with an image, but cannot get it to work.
This is the buttons code....(using the normal button)
When clicking on the button it calls some Jscript sending 2 variables to the function!!
<input type="button" value="Add ->"
onClick="copySelected(oLastCombo,this.form.select2)"
style="font-family: monospace; font-size: 8pt">
This is what I tried.......(using an image)
<img src="file:///C:/New/images/add.gif"
onClick="copySelected(oLastCombo,this.form.select2)" width="94" height="21"
alt="add.gif (463 bytes)">
I get this error...
"this.form.select2 is not an object" when using the image as a button.
PLEASE HELP.
Thanks
T