Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1542 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

How do you customize a button?

Thread title: How do you customize a button?
Closed Thread    
    Thread tools Search this thread Display Modes  
01-05-2006, 12:47 AM
#1
eravedesigns is offline eravedesigns
eravedesigns's Avatar
Status: Senior Member
Join date: Mar 2005
Location:
Expertise:
Software:
 
Posts: 768
iTrader: 2 / 100%
 

eravedesigns is on a distinguished road

Send a message via AIM to eravedesigns

  Old  How do you customize a button?

When you use code like this
<input type="submit" name="subButton" value="Search" />

It generates a submit button

How can i make it that it uses a button image of my own?

01-05-2006, 01:36 AM
#2
jono1 is offline jono1
jono1's Avatar
Status: Non-conformist
Join date: Jul 2005
Location: Canberra, Australia.
Expertise:
Software:
 
Posts: 1,172
iTrader: 0 / 0%
 

jono1 is on a distinguished road

  Old

HTML Code:
<input type="image" src="image.gif" />
If you use that it will function as a submit button. I don't believe there's a way to easily do it for 'reset' or other buttons.

01-05-2006, 02:31 AM
#3
eravedesigns is offline eravedesigns
eravedesigns's Avatar
Status: Senior Member
Join date: Mar 2005
Location:
Expertise:
Software:
 
Posts: 768
iTrader: 2 / 100%
 

eravedesigns is on a distinguished road

Send a message via AIM to eravedesigns

  Old

I put that in but now the button dosent do anything. I got the image and when you put your curser over it it goes to a pointer but you click and nothign happens. could this be because in some othe php file it is set to look for a input name button and not a image

01-05-2006, 04:20 AM
#4
jono1 is offline jono1
jono1's Avatar
Status: Non-conformist
Join date: Jul 2005
Location: Canberra, Australia.
Expertise:
Software:
 
Posts: 1,172
iTrader: 0 / 0%
 

jono1 is on a distinguished road

  Old

I dunno..I just put it in and it works - I'll show you
HTML Code:
<form action="search.php" method="post">
	<input type="text" name="query" class="query" size="30" />
	<input type="image" class="search-btn" src="assets/search_btn.gif" alt="search" title="search" />
</form>
That's what I use and it works...

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed