| 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 ? |
| |
|
|
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| What? |
| |
|
|
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/ |
| |
|
|
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 |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
| |
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 ... |
| |
|
|
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. |
| |
|
|
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... |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
It is a submit button.
Read the specs. |
| |
|
|
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 ... |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| We don't. In IE, it doesn't function correctly. |
| |
|
|
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
does any function correctly in IE :P
?
S/any/anything/ |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
The other two forms of submit buttons do.
At least |
| |
|
|
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 :-) |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| No, but you could fake it with onfocus/onblur or :focus/:active |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| that's probably above his skill set ... ? Does the <BUTTON syntax depress the button by any chance ? |
| |
|
|
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 |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
| |
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 ... |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| In this case, certainly |
| |
|
|
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 ... ? |
| |
|
|
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| It will work anywhere as a submit button. |
| |
|
|
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 ? |
| |
|
|
Lusis Backwood JR
Joined: 26 May 2006 Posts: 87 Location: United States
|
| On hover-state the problem lays? |
| |
|
|
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. |
| |
|
|
| Page 1 of 2 |
Goto page 1, 2 Next |
|