> >>> Is there a way to make the browse button an image?
>
[quoted text clipped - 12 lines]
> --
> Rik Wasmus
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 ...
Any idea?
Thanks,
Miguel
Michael Fesser - 27 Aug 2007 01:31 GMT
.oO(shapper)
>Yes, I want to style the button that accompanies <input type=file>.
There's no reliable way to do that.
>I have seen this one or twice and it seemed to work fine ...
Most likely an ugly JavaScript hack.
Micha
> >>> Is there a way to make the browse button an image?
>
[quoted text clipped - 12 lines]
> --
> Rik Wasmus
Hi,
Here is an ASP.NET control that does just that:
http://www.telerik.com/demos/aspnet/Upload/Examples/Overview/DefaultCS.aspx
A few demos:
http://www.telerik.com/demos/aspnet/Upload/Examples/Skinning/DefaultCS.aspx
http://www.telerik.com/demos/aspnet/Upload/Examples/AdditionalFields/DefaultCS.aspx
This seems to work fine.
How is this done? Any idea?
Thanks,
Miguel
rf - 27 Aug 2007 01:45 GMT
>> >>> Is there a way to make the browse button an image?
>>
[quoted text clipped - 24 lines]
>
> This seems to work fine.
Nope. They don't work fine.
> How is this done? Any idea?
They are overlaying (z-index) a normal <input type=file> with an <input
type=text> and an <input type=button> and styling the button. They are not
styling the <input type=file> button which is, of course, generated by the
browser.
I didn't research the javascript skulduggery that must be going on behind
the scenes.

Signature
Richard.
Gregor Kofler - 29 Aug 2007 12:16 GMT
shapper meinte:
> Here is an ASP.NET control that does just that:
>
[quoted text clipped - 7 lines]
>
> How is this done? Any idea?
Get yourself some tools and find out yourself.
I'd suggest FireBug and DomInspector. It's easy. Really.
Gregor

Signature
http://www.gregorkofler.at ::: Landschafts- und Reisefotografie
http://www.licht-blick.at ::: Forum für Multivisionsvorträge
http://www.image2d.com ::: Bildagentur für den alpinen Raum