Jump to content


Photo

How to change the button's look


  • Please log in to reply
4 replies to this topic

#1 BernardBlack

BernardBlack
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 19 April 2006 - 09:20 AM

I have an upload script (http://tech.tailored...e-upload-53.php), and I was woundering how I can change the buttons browse & upload to an image.

Thank you for your help,
BernardBlack

#2 redbullmarky

redbullmarky
  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 19 April 2006 - 09:40 AM

[!--quoteo(post=366348:date=Apr 19 2006, 10:20 AM:name=BernardBlack)--][div class=\'quotetop\']QUOTE(BernardBlack @ Apr 19 2006, 10:20 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
I have an upload script (http://tech.tailoredweb.com/simple-upload-53.php), and I was woundering how I can change the buttons browse & upload to an image.

Thank you for your help,
BernardBlack
[/quote]

not 100% sure but i believe that CSS to an extent can style a button, even as far as the background image. really not sure how good it works cross browser though - havent actually ever tried it on a 'file' input type.

"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!

#3 BernardBlack

BernardBlack
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 19 April 2006 - 11:48 AM

Ok, so it is not possible just do substiute it to like an image (img="imgurl") etc etc? Maybe link it to something in particular? I'm not sure ><

#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 19 April 2006 - 12:08 PM

Practically, you can't style the 'browse' button or substitute it.

Take a look at [a href=\"http://www.quirksmode.org/dom/inputfile.html\" target=\"_blank\"]http://www.quirksmode.org/dom/inputfile.html[/a] for what can be done.
Legend has it that reading the manual never killed anyone.
My site

#5 BernardBlack

BernardBlack
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 19 April 2006 - 01:59 PM

Ok thanks for your help - it seems leaving it as is will have to do - otherwise it causes problems :'(

Thanks for your fast replies & support again :'),
BernardBlack




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users