हां, मुझे सबसे अच्छा काम मिल गया! यह एक हैक नहीं है - हमें केवल 2 बटन चाहिए: मूल, और 'नकली'।
<input type="button" value="Choose Files">
<input type="file">
नकली
z-index:2, opacity: 0; position: relative;
साथ उपयोगकर्ता के लिए प्रदर्शित किया जाता है, और
z-index:1
मूल यह ऊपर तैनात किया जाता है, और कॉलबैक है:
:onmousedown=>"buttonPush('depressed')", :onmouseup=>"buttonPush('normal')"
function buttonPush(buttonStatus) {
if (buttonStatus == "depressed")
document.getElementById("fake_btn").style.borderStyle = "inset";
else
document.getElementById("fake_btn").style.borderStyle = "outset";
}
इस के लिए धन्यवाद लिंक http://www.dreamincode.net/forums/topic/15621-styling-a-file-browse-button/
सादर @Piskvor, @racar
[लेबलिंग फाइल अपलोड बटन] (http://stackoverflow.com/questions/686905/labeling-file-upload-button) – Piskvor