שלח תשובה

זירת השאלות

462
צפיות
6
תשובות

שאלה לגבי button file filed

,‏ 18 באוגוסט, 2004

בניתי את הכפתור אבל איך אני משנה את ה – browse לעיון ומשנה את הכיוון של הכפתור

בתודה איתי.

תגיות:

6 תשובות

  1. BuildHome הגיב:

    זה תלוי
    בשפת המחשב שלך, הוינדוס.

  2. ניר טייב הגיב:

    הנה
    האדיבות ילד כחול

    <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>

  3. ניר טייב הגיב:

    עכשיו אתה יכול לעצב את ה-INPUT
    הרגיל (מסוג TEXT) ואליו יכנסו הנתונים

  4. prince01 הגיב:

    יא אללה איזה תותח
    כמה שאני יודע בCSS וJS ולא מצליח לפתור את הבעיות האלה ואתה מצליח ..
    פששש אלוף

  5. ניר טייב הגיב:

    הכל מהצצה קטנה ב-FAQ
    של פורום ASP בתפוז

שלח תשובה