redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

replacing the image on a submit button


Goto page 1, 2  Next
 
Post new topic   Reply to topic    Web Design Forums -> General Web Design discussion
View previous topic :: View next topic  
Author Message
ovigo22



Joined: 15 May 2006
Posts: 130
What's the script for replacing the image on a submit button guys ?
  Reply with quote


BigDaddy



Joined: 26 May 2006
Posts: 147
What?
  Reply with quote
ovigo22



Joined: 15 May 2006
Posts: 130
BigDaddy, so that instead of the gray button for a submit. I get to replace it with an image of my own choosing ...
S/image/button/
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
I don't know what that has to do with script. You use an input with type="image".
`html input
  Reply with quote
optomeb



Joined: 19 May 2006
Posts: 113
Html input: http://www.w3.org/TR/html401/interact/forms.html#edef-INPUT
  Reply with quote
ovigo22



Joined: 15 May 2006
Posts: 130
I'd like to replace the image of the default operating system / browser button with a button of my own choosing .... it's still type="submit"
This isn't off topic as far as I'm aware ...
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
I still don't see what it has to do with script or why type of image is inferior in this case.
  Reply with quote
ovigo22



Joined: 15 May 2006
Posts: 130
BigDaddy, because as far as I'm aware type=image isn't a button and doesn't submit the form to the server ...
But thanks for the link :-)
Got it...
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
It is a submit button.
Read the specs.
  Reply with quote
ovigo22



Joined: 15 May 2006
Posts: 130
I just did thanks ... the specs recommend using the <BUTTON> syntax ... <BUTTON name="submit" value="submit" type="submit">
Send<IMG src="/icons/wow.gif" alt="wow"></BUTTON>
I've never seen the type syntax before ...
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
We don't. In IE, it doesn't function correctly.
  Reply with quote


ovigo22



Joined: 15 May 2006
Posts: 130
does any function correctly in IE :P
?
S/any/anything/
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
The other two forms of submit buttons do.
At least
  Reply with quote
ovigo22



Joined: 15 May 2006
Posts: 130
Does it still do the depress image when you click it ?
ok, he can figure that out for himself ... Thanks BigDaddy :-)
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
No, but you could fake it with onfocus/onblur or :focus/:active
  Reply with quote
ovigo22



Joined: 15 May 2006
Posts: 130
that's probably above his skill set ... ? Does the <BUTTON syntax depress the button by any chance ?
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
Well, :active or onkeydown/up actually
The button element does, yes; but again, it doesn't work right in IE. You could just give a regular input type="submit" button a background and width/height...
`submit # may be of help, too
  Reply with quote
optomeb



Joined: 19 May 2006
Posts: 113
Submit: http://ppewww.ph.gla.ac.uk/~flavell/www/trysub.html
  Reply with quote
ovigo22



Joined: 15 May 2006
Posts: 130
BigDaddy, gosh - the world of browser rendering continues to amaze me in it's complexity ... who would have thought something so easy could be made so difficult ?
I guess we have MS to thank for that ...
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
In this case, certainly
  Reply with quote
ovigo22



Joined: 15 May 2006
Posts: 130
so you're saying that just adding a <INPUT type='submit' background='image.jpg' height='x' width='y' ... should work though ... although not quite in IE ... ?
  Reply with quote


BigDaddy



Joined: 26 May 2006
Posts: 147
It will work anywhere as a submit button.
  Reply with quote
ovigo22



Joined: 15 May 2006
Posts: 130
Lusis Backwood JR, helping someone to submit his own button image instead of the normal one ... but keeping the depress image functionality.,
BigDaddy, but it has problems in IE right ?
  Reply with quote
Lusis Backwood JR



Joined: 26 May 2006
Posts: 87
Location: United States
On hover-state the problem lays?
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
No, the button element has problems in IE. The input element with type submit or image do not.
  Reply with quote
Page 1 of 2 Goto page 1, 2  Next
Post new topic   Reply to topic    Web Design Forums -> General Web Design discussion


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group