Results 1 to 9 of 9
Thread: tooltip with forms in php?
-
September 27th, 2008, 05:38 AM #1
tooltip with forms in php?
I don't really want to use javascript.
What I want to do is to have a descriptive tooltip displayed
when I user clicks a form field.

When the user clicks the input box, the text "Enter your name" is displayed or something similar to that effect.
and so on for the others.Last edited by Utech22; September 28th, 2008 at 01:17 PM. Reason: js
php / mysql / flash / xml

- www.ChampsJamaica.com
-- www.FashionsJamaica.com
--- www.RealJamaicaEstate.com
-
September 27th, 2008, 11:45 PM #2
has to be javascript
Let us live so that when we come to die even the undertaker will be sorry. - Mark Twain
Don't PM me your CSS, xHTML, JS or PHP questions. I will not reply to ANY IE6 questions.
-
September 28th, 2008, 12:55 AM #3
I use CSS on a few apps at work by using the basic CSS rollovers with the silk "help" icon, usually looks pretty nice, but for what you want simp is right has to be JS.
-
September 28th, 2008, 11:25 PM #4php / mysql / flash / xml

- www.ChampsJamaica.com
-- www.FashionsJamaica.com
--- www.RealJamaicaEstate.com
-
September 28th, 2008, 11:47 PM #5
^onclick is a javascript event handler and doesn't work like how your using it.
-
September 29th, 2008, 12:26 AM #6
What you are looking for is onfocus, something like this can be easily achieved using javascript. I use it on http://www.websiteninjas.com/contact-us
You can still the javascript and css file if you would like.
-
September 29th, 2008, 10:15 AM #7php / mysql / flash / xml

- www.ChampsJamaica.com
-- www.FashionsJamaica.com
--- www.RealJamaicaEstate.com
-
September 29th, 2008, 10:20 AM #8155Registered User
postsuse the title attribute if you want a tooltip to appear near the mouse. (like hovering over the title of a thread on this forum)
or you can use css popups if you want it to appear as part of the page. http://meyerweb.com/eric/css/edge/popups/demo.html
-
September 29th, 2008, 12:45 PM #9
if for some reason you wanted the variables for your messages to be php values, you can always go a javascript/json route. you have your json encoded array in some sort of storage file, so like
then with javascript import that data via json and it could dynamically show that tooltip.Code:$messages = array( 'first_name' => "Please enter your first name.", 'last_name' => "Please enter your last name." );
Let us live so that when we come to die even the undertaker will be sorry. - Mark Twain
Don't PM me your CSS, xHTML, JS or PHP questions. I will not reply to ANY IE6 questions.

Reply With Quote



Bookmarks