![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there a way to make the browse button an image? |
#3
| |||
| |||
|
|
Steve Swift <Steve.J.Swift (AT) gmail (DOT) com> writes: shapper wrote: Is there a way to make the browse button an image? Two easy ways: INPUT TYPE=IMAGE SRC=smiley.gif onClick="alert('Ouch! My nose!')" P BUTTON onClick="alert('You clicked the button')">Click: <IMG SRC=/smiley.gif></BUTTON I think the OP wants to know how to style the button that often accompanies <input type=file>. |
#4
| |||
| |||
|
|
On Sun, 26 Aug 2007 02:42:35 +0200, Ben Bacarisse <ben.use... (AT) bsb (DOT) me.uk wrote: Steve Swift <Steve.J.Sw... (AT) gmail (DOT) com> writes: shapper wrote: Is there a way to make the browse button an image? Two easy ways: INPUT TYPE=IMAGE SRC=smiley.gif onClick="alert('Ouch! My nose!')" P BUTTON onClick="alert('You clicked the button')">Click: <IMG SRC=/smiley.gif></BUTTON I think the OP wants to know how to style the button that often accompanies <input type=file>. If that's the question: no, it cannot be done. You cannot style the 'browse' button reliably. -- Rik Wasmus |
#5
| |||
| |||
|
|
On Sun, 26 Aug 2007 02:42:35 +0200, Ben Bacarisse <ben.use... (AT) bsb (DOT) me.uk wrote: Steve Swift <Steve.J.Sw... (AT) gmail (DOT) com> writes: shapper wrote: Is there a way to make the browse button an image? Two easy ways: INPUT TYPE=IMAGE SRC=smiley.gif onClick="alert('Ouch! My nose!')" P BUTTON onClick="alert('You clicked the button')">Click: <IMG SRC=/smiley.gif></BUTTON I think the OP wants to know how to style the button that often accompanies <input type=file>. If that's the question: no, it cannot be done. You cannot style the 'browse' button reliably. -- Rik Wasmus |
#6
| |||
| |||
|
|
Yes, I want to style the button that accompanies <input type=file>. |
|
I have seen this one or twice and it seemed to work fine ... |
#7
| |||
| |||
|
|
On Aug 26, 3:50 am, Rik <luiheidsgoe... (AT) hotmail (DOT) com> wrote: On Sun, 26 Aug 2007 02:42:35 +0200, Ben Bacarisse <ben.use... (AT) bsb (DOT) me.uk wrote: Steve Swift <Steve.J.Sw... (AT) gmail (DOT) com> writes: shapper wrote: Is there a way to make the browse button an image? Two easy ways: INPUT TYPE=IMAGE SRC=smiley.gif onClick="alert('Ouch! My nose!')" P BUTTON onClick="alert('You clicked the button')">Click: <IMG SRC=/smiley.gif></BUTTON I think the OP wants to know how to style the button that often accompanies <input type=file>. If that's the question: no, it cannot be done. You cannot style the 'browse' button reliably. -- Rik Wasmus Hi, Here is an ASP.NET control that does just that: http://www.telerik.com/demos/aspnet/...DefaultCS.aspx A few demos: http://www.telerik.com/demos/aspnet/...DefaultCS.aspx http://www.telerik.com/demos/aspnet/...DefaultCS.aspx This seems to work fine. |
|
How is this done? Any idea? |
![]() |
| Thread Tools | |
| Display Modes | |
| |