עמוד ראשי » זירת השאלות » שאלה לגבי button file filed462צפיות6תשובותשאלה לגבי button file filed itay26, 18 באוגוסט, 2004בניתי את הכפתור אבל איך אני משנה את ה – browse לעיון ומשנה את הכיוון של הכפתור בתודה איתי.תגיות: פורום צד לקוח
6 תשובות
זה תלוי
בשפת המחשב שלך, הוינדוס.
הנה
האדיבות ילד כחול 
<html>
<head>
<style type="text/css">
.file {
display: none;
}
input.upload {
border: 1px solid green;
height: 20px;
width: 300px;
}
button.upload {
border: 1px solid green;
height: 20px;
color: green;
background: lightgreen;
font: bold 12px menu;
}
</style>
</head>
<body>
<form onsubmit="alert(file.value)">
<input type="text" id="txt" class="upload"/>
<button onclick="file.click()" class="upload">Browse…</button>
<input type="file" id="file" class="file" onchange="txt.value = this.value" />
<br />
<input type="submit" value="Upload">
</form>
</body>
</html>
עכשיו אתה יכול לעצב את ה-INPUT
הרגיל (מסוג TEXT) ואליו יכנסו הנתונים
יא אללה איזה תותח
כמה שאני יודע בCSS וJS ולא מצליח לפתור את הבעיות האלה ואתה מצליח ..
פששש אלוף
הכל מהצצה קטנה ב-FAQ
של פורום ASP בתפוז
פשש … , מדהים !!!