Using a graphic instead of the "Browse" button

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • laredotornado@zipmail.com

    Using a graphic instead of the "Browse" button

    Hello,

    Is it possible, instead of having the button "Browse" for the HTML
    <input type="file"> element, to have a graphic in its place? How would
    this be done?

    Thanks, - Dave

  • David Dorward

    #2
    Re: Using a graphic instead of the &quot;Browse&qu ot; button

    laredotornado@z ipmail.com wrote:
    [color=blue]
    > Is it possible, instead of having the button "Browse" for the HTML
    > <input type="file"> element, to have a graphic in its place?[/color]

    No... at least not consistently and not in a way which would not render the
    button entirely unusable by some users.

    --
    David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is

    Comment

    • Toby Inkster

      #3
      Re: Using a graphic instead of the &quot;Browse&qu ot; button

      laredotornado wrote:
      [color=blue]
      > How would this be done?[/color]

      Can't.

      --
      Toby A Inkster BSc (Hons) ARCS
      Contact Me ~ http://tobyinkster.co.uk/contact

      Comment

      • Madguy

        #4
        Re: Using a graphic instead of the &quot;Browse&qu ot; button

        You might not be able to...

        But for submit button you can do like this.

        <BUTTON name="submit" value="submit" type="submit">
        Any Text If Need <IMG src="ie.gif" alt="wow">
        </BUTTON>

        Check in www.w3c.org and you might find a way......

        /Cheers,
        -MadGuy

        Comment

        • Madguy

          #5
          Re: Using a graphic instead of the &quot;Browse&qu ot; button

          Ah... for some it's working it seems.. check this page out.. you'll
          survive...



          /Cheers,
          -MadGuy

          Comment

          • Jukka K. Korpela

            #6
            Re: Using a graphic instead of the &quot;Browse&qu ot; button

            Madguy wrote:
            [color=blue]
            > You might not be able to...[/color]

            You can't.
            [color=blue]
            > But for submit button you can do like this.[/color]

            Why would that be the least relevant to the question that was asked?

            But if it's relevant to _you_, you should know that all attempts to
            replace a normal submit button by some graphic are more or less
            problematic. You seem to have chosen something in the "more" category:
            [color=blue]
            > <BUTTON name="submit" value="submit" type="submit">
            > Any Text If Need <IMG src="ie.gif" alt="wow">
            > </BUTTON>[/color]

            The <button> element is _incorrectly_ implemented in Internet Explorer.
            This alone is a good reason to avoid it. Some browsers do not implement
            <button> at all.
            [color=blue]
            > Check in www.w3c.org and you might find a way......[/color]

            They don't warn about flaws in implementations very much.

            Comment

            • Madguy

              #7
              Re: Using a graphic instead of the &quot;Browse&qu ot; button


              Jukka K. Korpela wrote:
              [color=blue]
              > But if it's relevant to _you_, you should know that all attempts to
              > replace a normal submit button by some graphic are more or less
              > problematic. You seem to have chosen something in the "more" category:[/color]

              Initial problem is about possibility..
              [color=blue][color=green]
              > > <BUTTON name="submit" value="submit" type="submit">
              > > Any Text If Need <IMG src="ie.gif" alt="wow">
              > > </BUTTON>[/color]
              >
              > The <button> element is _incorrectly_ implemented in Internet Explorer.
              > This alone is a good reason to avoid it. Some browsers do not implement
              > <button> at all.[/color]

              As long as question is about possibily of doing that, my answer should
              be correct. .where as your reply focus on compatibility and browser
              implementatiion s. well... for that you could use JavaScript and get the
              browser version and make some alternative depending on the browser..

              /Cheers,

              -MadGuy

              Comment

              • Jukka K. Korpela

                #8
                Re: Using a graphic instead of the &quot;Browse&qu ot; button

                Madguy wrote:
                [color=blue]
                > As long as question is about possibily of doing that,[/color]

                It wasn't, as I explained.

                You _still_ haven't apparently read the question, which was clearly
                formulated and which is well reflected on the Subject line.
                [color=blue]
                > my answer should be correct.[/color]

                It wouldn't be, even if the question had been what you seem to think.
                [color=blue]
                > where as your reply focus on compatibility and browser
                > implementatiion s. well... for that you could use JavaScript and get the
                > browser version and make some alternative depending on the browser..[/color]

                You seem to aim at creating problems with pseudo-solutions to problems
                that you try to create in answering question that were not asked.

                Comment

                • Madguy

                  #9
                  Re: Using a graphic instead of the &quot;Browse&qu ot; button

                  i'm sorry.. but still i dont see anything relative to what you say and
                  any thing mis-mathching to what i said, in the original message. this
                  may be either your or mine perceptual error.

                  /Cheers,
                  -MadGuy

                  Comment

                  • Beauregard T. Shagnasty

                    #10
                    Re: Using a graphic instead of the &quot;Browse&qu ot; button

                    Madguy wrote:
                    [color=blue]
                    > well... for that you could use JavaScript and get the
                    > browser version[/color]

                    Not in my browser, you won't.

                    --
                    -bts
                    -Warning: I brake for lawn deer

                    Comment

                    • Madguy

                      #11
                      Re: Using a graphic instead of the &quot;Browse&qu ot; button

                      >Not in my browser, you won't.

                      For that also you could give a condition.. (to trace the browsers which
                      dont support that)....

                      :D

                      /Cheers,
                      -MadGuy

                      Comment

                      • Robi

                        #12
                        Re: Using a graphic instead of the &quot;Browse&qu ot; button

                        David Dorward wrote in message news:dkpmml$mtj $1$8300dec7@new s.demon.co.uk.. .[color=blue]
                        > laredotornado at zipmail.com wrote:
                        >[color=green]
                        >> Is it possible, instead of having the button "Browse" for the HTML
                        >> <input type="file"> element, to have a graphic in its place?[/color]
                        >
                        > No... at least not consistently and not in a way which would not render the
                        > button entirely unusable by some users.[/color]


                        it uses Javascript, although if someone has javascript disabled,
                        it only would look somewhat awkward.

                        Just remember, it's a quirk

                        Comment

                        Working...