This topic is locked

How to change Save button to image

4/9/2009 6:50:58 AM
PHPRunner General questions
J
jack knowles author

Hello Forum,
On my supplier_add.php page, I would like to change the standard Save button to an image.
How can i do this.
Image name is save_button.jpg
Thank you
JK

J
Jane 4/9/2009

Hi,
proceed to the Visual Editor tab, click on the button and switch to HTML mode.

Then edit highlighted HTML code for this button as you want.

J
jack knowles author 4/9/2009

Jane,
Visual Editor for "Save Button" shows the following code:
{BEGIN save_button}<SPAN class=buttonborder><INPUT class=button type=submit value=Save name=submit1></SPAN>{END save_button}
Can you please provide a sample as to what needs to be changed.
Many Thanks
JK

J
Jane 4/9/2009

Please see my changes below:

{BEGIN save_button}<SPAN class=buttonborder><INPUT style="background: url(images/image.jpg);" class=button type=submit value=Save name=submit1></SPAN>{END save_button}

J
jack knowles author 4/9/2009

Jane,
Code supplied simply inserts image into the save button.

I would like to replace the button with an image of my choice. i.e. no wording, no spanned button order, etc.
Please assist.
JK

J
Jane 4/9/2009

Hi,
try to use this code instead of standart button:

<img src="images/image.gif" onclick="editform.submit();">