473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

html image instead of button

how do you subtitute image instead of button

for example: i have this code below:
and it has a defualt button. how do i replace it with a image button.
i dont have a image yet . please help



<form name="font_select" action="GET">
<input
type="button"
onclick="javascript:fontsizedown();"
value=" font - "
/>
<input
type="button"
onclick="javascript:fontsizeup()"
value=" font + "
/>
</form>
Sep 26 '07 #1
4 7061
Death Slaught
1,137 1GB
how do you subtitute image instead of button

for example: i have this code below:
and it has a defualt button. how do i replace it with a image button.
i dont have a image yet . please help



[HTML]<form name="font_select" action="GET">
<input
type="button"
onclick="javascript:fontsizedown();"
value=" font - "
/>
<input
type="button"
onclick="javascript:fontsizeup()"
value=" font + "
/>
</form>[/HTML]
Sup silviasalsa, please use proper code tags when posting code, please read the posting guidelines .

I assume that your wanting to know how to add certain attributes to your image code, like "onblur, onfocus, onclick, onmouseover, onmouseout....etc." just add the attribute to your code like this:

[HTML]<img src="location of image" alt="text to be displayed if image encounters an error" border="0" onclick="alert('text')" />[/HTML]



Hope it helps, Death
Sep 26 '07 #2
drhowarddrfine
7,435 Expert 4TB
No, I think he just wants a button image. So:
<button name="submit" value="submit" type="submit"><img src="1.png">

Of course, much more can be done to style that.
Sep 26 '07 #3
Hi Silvia,
You can few modifications, as mentioned below, in your code
<input type="IMAGE" value="button" src="<image name>"/>
hope this one will work...revert in case of concerns....till thn happy coding...:)

how do you subtitute image instead of button

for example: i have this code below:
and it has a defualt button. how do i replace it with a image button.
i dont have a image yet . please help



<form name="font_select" action="GET">
<input
type="button"
onclick="javascript:fontsizedown();"
value=" font - "
/>
<input
type="button"
onclick="javascript:fontsizeup()"
value=" font + "
/>
</form>
Oct 1 '07 #4
numberwhun
3,509 Expert Mod 2GB
how do you subtitute image instead of button

for example: i have this code below:
and it has a defualt button. how do i replace it with a image button.
i dont have a image yet . please help



<form name="font_select" action="GET">
<input
type="button"
onclick="javascript:fontsizedown();"
value=" font - "
/>
<input
type="button"
onclick="javascript:fontsizeup()"
value=" font + "
/>
</form>
And, for a little light reading on the other options of the input tag, check out this link.

Regards,

Jeff
Oct 1 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
4
by: Ester | last post by:
I have an interior design of a living room with lights and aircond image. My task is to load the living room image without any light and aircond images as background image of a WebForm after that I...
2
by: Ester | last post by:
Instead of drag and drop image button from Toolbox and name the image button id on the properties box, I would like to load image button ID from database. I created a database table that stores...
15
by: Anand Ganesh | last post by:
HI All, I have an Image. I want to clip a portion of it and copy to another image. How to do this? I know the bounding rectangle to clip. Any suggestions please. Thanks for your time and...
6
by: ruca | last post by:
Hi gurus, I have a imagebutton in my WebForm, and I want that when I click (mouse down) on her the imagebutton change image and when I "unclick" (mouse up) change to the original image. Basically...
10
by: Mirek Endys | last post by:
Is there a posibility to make web control, that is drawing an image to webpage without needing to save it into a file? (for example, i will save picture into db server and I want to show it...
2
by: jon | last post by:
Hi This might be an easy one to answer but I have a web form in an ASP.NET 1.1 application with a hand-rolled HTML image button as follows which opens a help guide in a new window: <input...
2
by: sono | last post by:
Today I read there is a possibility to write direct Fench characters in HTML. Thus instead of having to write : L'&eacute;l&egrave;ve va &agrave; l'&eacute;cole et ceci est &eacute;crit en...
3
by: Valli | last post by:
Hi, I want to add an image to a html type input button. How can I do this? I have used background image style . But its not working. My target is to show an image in the button can anyone...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.