Help Bubble

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Garry Jones

    #1

    Help Bubble

    I am using a form that uses php code.

    On it I have the following radio buttons.

    <td width="250" valign="top">
    Choice1<input type="radio" value="FV1 140km - 300kr" name="fardvag<? = $dna
    ?>" ><br>
    Choice2<input type="radio" value="FV2 88km - 280kr" name="fardvag<? = $dna
    ?>"><br>
    Choice3<input type="radio" value="FV3 35km - 160kr" name="fardvag<? = $dna
    ?>"><br>
    Choice4<input type="radio" value="TOM" checked name="fardvag<? = $dna ?>" >
    </td>

    Is there any php code that I can use that will display a help bubble text
    over each of the four choices.

    If it can not be done with php can anyone point me a more appropiate
    newsgroup.

    Thanks for any help

    Garry Jones
    Sweden


  • Brad

    #2
    Re: Help Bubble

    Garry,

    Check out http://www.dynamicdrive.com/dynamicindex5/index.html and this
    will give you the Javascript to do so. PHP is a server side language
    so it will not be able to actually manipulate the code. You can print
    the Javascript using PHP but you will need Javascript to make it appear
    and disappear. I use Popup Information Box II and III for my projects.

    ~Brad

    Comment

    • Colin McKinnon

      #3
      Re: Help Bubble

      Garry Jones wrote:

      <snip>[color=blue]
      > Is there any php code that I can use that will display a help bubble text
      > over each of the four choices.
      >
      > If it can not be done with php can anyone point me a more appropiate
      > newsgroup.
      >[/color]

      These are generally refered to as tooltips and are implemented on the
      browser in javascript - so you're right in thinking this is OT. I like
      DomTT for generating these see
      mojavelinux.com serves as a digital workplace for the thoughts, programs and ideas of an open source advocate, author, visionary and teacher, Dan Allen, so that they may be shared with the world.


      If you're going to keep asking question you might find this article helps
      you to get better responses:



      C.

      Comment

      • Chuck Anderson

        #4
        Re: Help Bubble

        Garry Jones wrote:
        [color=blue]
        >I am using a form that uses php code.
        >
        >On it I have the following radio buttons.
        >
        ><td width="250" valign="top">
        >Choice1<inpu t type="radio" value="FV1 140km - 300kr" name="fardvag<? = $dna
        >?>" ><br>
        >Choice2<inpu t type="radio" value="FV2 88km - 280kr" name="fardvag<? = $dna
        >?>"><br>
        >Choice3<inpu t type="radio" value="FV3 35km - 160kr" name="fardvag<? = $dna
        >?>"><br>
        >Choice4<inpu t type="radio" value="TOM" checked name="fardvag<? = $dna ?>" >
        ></td>
        >
        >Is there any php code that I can use that will display a help bubble text
        >over each of the four choices.
        >
        >If it can not be done with php can anyone point me a more appropiate
        >newsgroup.
        >
        >Thanks for any help
        >
        >Garry Jones
        >Sweden
        >
        >[/color]
        Php works on the server, so it can not do this.

        The simplest way I know is to use some basic HTML. Put title="help
        bubble text" within in each <input ...>. Users will have to hover over
        the actual radio button to get the help bubble.

        If you want people to see it when hovering over the word "Choicen," too,
        put it and each radio button within a div and put the title attribute in
        the div tag.

        --
        *************** **************
        Chuck Anderson • Boulder, CO

        Integrity is obvious.
        The lack of it is common.
        *************** **************

        Comment

        Working...