473,840 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

html image instead of button

4 New Member
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_sele ct" action="GET">
<input
type="button"
onclick="javasc ript:fontsizedo wn();"
value=" font - "
/>
<input
type="button"
onclick="javasc ript:fontsizeup ()"
value=" font + "
/>
</form>
Sep 26 '07 #1
4 7093
Death Slaught
1,137 Top Contributor
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_sele ct" action="GET">
<input
type="button"
onclick="javasc ript:fontsizedo wn();"
value=" font - "
/>
<input
type="button"
onclick="javasc ript: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....e tc." 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 Recognized Expert Expert
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
anubhavkumar
1 New Member
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....til l 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_sele ct" action="GET">
<input
type="button"
onclick="javasc ript:fontsizedo wn();"
value=" font - "
/>
<input
type="button"
onclick="javasc ript:fontsizeup ()"
value=" font + "
/>
</form>
Oct 1 '07 #4
numberwhun
3,509 Recognized Expert Moderator Specialist
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_sele ct" action="GET">
<input
type="button"
onclick="javasc ript:fontsizedo wn();"
value=" font - "
/>
<input
type="button"
onclick="javasc ript: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
6566
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 courses to pass the correct option value and then be displayed at the following URL: http://www.dslextreme.com/users/kevinlyons/selectResults.html I am passing countries, products, and courses. The first two display
4
2455
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 have to add image button which are lights and aircond images on top of this background image (living room). Instead of drag and drop an image button from the toolbox and browse the image link, I would like to load the image for the image button from...
2
2720
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 Image Button ID and Image (path name of the image for the image button). Example of the data will be: (ImgBtnLight, image\light.gif). The data type of the Image Button ID field in the database table is varchar whereas data type of image button in...
15
31821
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 help. Regards
6
22140
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 I want to know how can I have the mousedown and mouseup buttons events. I think that I have to do this in JavaScript. Can you help me on this?
10
2153
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 without saving it into file on file system) Thanks
2
6606
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 type= "image " id= " imgHelp " onclick="javascript:void(window.open('<% Response.Write(ConfigurationSettings.AppSettings); %>')) ">
2
7948
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 Fran&ccedil;ais! I should be able to directly write it in French, i.e. : L'élève va à l'école et ceci est écrit en Français! (I just hope this renders well on your output device)
3
1747
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 help me? -- Regards
0
10926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10609
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10666
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10302
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7024
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5691
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4081
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.