| | |
Redesign input type="file"
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
When using this HTML code:
You get a rectangle where the location is stored, and a button labelled "Browse..".
I would like to redesign the "Browse.." button and I was told this would have to be done using mainly javascript and abit of css (I thought it would be the other way around only abit of javascript and alot of css - which im prefering).
So any ideas how to redesign the "Browse.." button?
Note: The file is a php file which contains various input type="submit", etc.
Thanks, Regards X
You get a rectangle where the location is stored, and a button labelled "Browse..".
I would like to redesign the "Browse.." button and I was told this would have to be done using mainly javascript and abit of css (I thought it would be the other way around only abit of javascript and alot of css - which im prefering).
So any ideas how to redesign the "Browse.." button?
Note: The file is a php file which contains various input type="submit", etc.
Thanks, Regards X
The only way I know of is to use a workaround...This website has the best solution I've come across...Just follow the steps, and be sure to download the scripts he has written at the bottom of the page.
http://www.shauninman.com/archive/20...ss_and_the_dom
http://www.shauninman.com/archive/20...ss_and_the_dom
I know this is a problem that very vew people have figured out a way around, but the one you mentioned above dosent allow you to view the file you have uploaded (Eg. D:\Programs\hi.jpg).
Im just trying to figure out using some CSS and minor Javascript can maybe come up with something?
Thanks for the heads up in the right direction though.
Im just trying to figure out using some CSS and minor Javascript can maybe come up with something?
Thanks for the heads up in the right direction though.
a little bit of googling and I came across this one on quirksmode...this seems to be about the same approach as the previous, but with a textbox to show the chosen file...both of these solutions are merely browser 'workarounds', and since they use opacity, cross-browser compatibility can be difficult to achieve!
Let me know if you come across something better and/or hack out your own solution, as this has always been the bane of elegant form design...
http://www.quirksmode.org/dom/inputfile.html
Let me know if you come across something better and/or hack out your own solution, as this has always been the bane of elegant form design...
http://www.quirksmode.org/dom/inputfile.html
![]() |
Other Threads in the HTML and CSS Forum
- Previous Thread: Page take long time to load
- Next Thread: Disappearing content in table cell IE7
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7





