468,247 Members | 1,325 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,247 developers. It's quick & easy.

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
Apr 26 '06 #1
3 1999
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

Apr 26 '06 #2
Garry Jones wrote:

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


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
http://www.mojavelinux.com/projects/domtooltip/

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

http://www.catb.org/~esr/faqs/smart-questions.html

C.
Apr 26 '06 #3
Garry Jones wrote:
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

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
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
Apr 26 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Carl Tribble | last post: by
6 posts views Thread by Takeadoe | last post: by
3 posts views Thread by JDC | last post: by
3 posts views Thread by Stuart Golodetz | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.