Hover with php
Moderator: General Moderators
Hover with php
Hello. I want to write some code that when I hover a name with the mouse, will show a little box where it will show the name, picture, birth date and other data from a database. What I dont know how to do is the hover. I dont know javascript. How can I do it, anybody knows about some extensions that I can use? Thanks!
Re: Hover with php
Javascript 
Re: Hover with php
You'll need to create a div that is visibility:hidden where you want it to appear. then, use javascript to reset the visibility. alternatively, you can get fancy, and use innerhtml to replace the contents of the div by calling a php script, but that may be overkill. 
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: Hover with php
Why not just use the HTML title attribute?
Re: Hover with php
The title attribute has a history of inconsistent display between browsers.
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: Hover with php
This is client-side. Moving to the appropriate forum.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.