View Full Version : Two questions
ShMiL
08-28-2002, 01:17 PM
1. Is it possible to put some CSS into the "Browse..." button in the <input type="file">? Can I at least change the value from "browse" to something else?
2. I have an HTML page perfectly aligned to the right, but once I put it in a frameset, I get an unwanted spacing between the right of the page to the right border of the browser. The frameset page is:
<!DOCTYPE HTML PUBLIC -//IETF//DTD HTML//EN>
<HTML>
<HEAD>
<TITLE>bla bla bla</TITLE>
</HEAD>
<frameset framespacing=0 border=0 rows=100%,* cols=100% frameborder=no>
<frame name="top" noresize scrolling="auto" src="http://www.hek.co.il/shmulik/d-kanyon/index.asp">
<frame name="bottom" scrolling=no noresize>
</frameset>
</html>
Thanks in advanced.
Zvona
08-28-2002, 02:37 PM
1. Is it possible to put some CSS into the "Browse..." button in the <input type="file">? Can I at least change the value from "browse" to something else?
There's no standard way and at least I've never heard or seen anyone doing that.
2. I have an HTML page perfectly aligned to the right, but once I put it in a frameset, I get an unwanted spacing between the right of the page to the right border of the browser.
Try adding following style def into body element's of documents :
<body style="padding:0px;margin:0px;">
ShMiL
08-28-2002, 02:57 PM
I already have this style tags on the page.
The cause to this unwanted space is the frameset (when I open the same page with no frames there's no problems), you should also know that pages that have more text in it (with no <br>) strech the page and it's aligned right to the right.
brothercake
08-28-2002, 04:34 PM
You can't change what the Browser button says. You can apply a background-color and font face/color but that's it
ShMiL
08-28-2002, 04:57 PM
Thanks brothercake.
Any answers for the second question? anyone?
Thanks again
Nightfire
08-29-2002, 03:14 AM
Dunno if this works
<frameset framespacing=0 border=0 rows=100%,* cols=100% frameborder=no style="margin:0px">
ShMiL
08-29-2002, 06:20 AM
It doesn't work...
HELP!
hairynugs6382
09-06-2002, 06:23 AM
show the page in question!
ShMiL
09-06-2002, 01:11 PM
the page with the frames in it, is in: http://2eilat.booxa.co.il
The original page (which is framed) is in: http://www.hek.co.il/shmulik/d-kanyon/index.asp
Thanks.
moonkitten
09-06-2002, 06:04 PM
Try this:
<frameset framespacing=0 border=0 rows=100%,* cols=100% frameborder=no>
<frame name="top" noresize scrolling="auto" src="http://www.hek.co.il/shmulik/d-kanyon/index.asp" marginwidth="0", marginheight="0" >
<frame name="bottom" scrolling=no noresize>
</frameset>
moonkitten
ShMiL
09-06-2002, 07:41 PM
still the same unwanted space from the right side...
adios
09-07-2002, 04:29 AM
:cool:
<html>
<head>
<title>untitled</title>
</head>
<body>
<form>
<input id="realfile" type="file" style="position:absolute;visibility:hidden;"
onchange="document.getElementById('dummyfile').value=this.value">
<input id="dummyfile" type="text">
<input type="button" value="bite me" onclick="document.getElementById('realfile').click()">
</body>
</html>
ShMiL
09-07-2002, 08:32 AM
Thanks adios!
Something about this mysterious blank to the right guys?
joh6nn
09-07-2002, 09:10 AM
adios, that is very very sweet.
ShMiL
08-05-2003, 01:14 PM
Originally posted by adios
:cool:
<html>
<head>
<title>untitled</title>
</head>
<body>
<form>
<input id="realfile" type="file" style="position:absolute;visibility:hidden;"
onchange="document.getElementById('dummyfile').value=this.value">
<input id="dummyfile" type="text">
<input type="button" value="bite me" onclick="document.getElementById('realfile').click()">
</body>
</html>
I search and found this :)
Now I'm trying it and having troubles with it...
When I press the submit button, the form refuses to submit - so I made the type=file input visible to see what's going on and saw that once I press the submit button - the value in the realfile vanishes.
When I press submit twice it works (but still, no file uploads).
Adios? :rolleyes:
AaronW
08-05-2003, 02:05 PM
Adios' method, although clever, appears to be useless in Mozilla :(
Too bad. I've been wanting to style the type="file" boxes for a while.
cheesebag
08-06-2003, 07:51 PM
Try giving the file input a name.
Basscyst
03-10-2006, 10:41 PM
I realize this is old but google found me this before I found a real working solution. This allows you pretty much full control over the appearence of input type="file".
http://www.quirksmode.org/dom/inputfile.html
Basscyst
drhowarddrfine
03-10-2006, 11:05 PM
Where were you 2 1/2 years ago?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.