Page 1 of 1
Hover with php
Posted: Sun Mar 15, 2009 10:18 pm
by xionhack
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
Posted: Sun Mar 15, 2009 10:46 pm
by Benjamin
Javascript

Re: Hover with php
Posted: Sun Mar 15, 2009 11:02 pm
by omniuni
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.

Re: Hover with php
Posted: Mon Mar 16, 2009 11:37 am
by Jonah Bron
Why not just use the HTML
title attribute?
Re: Hover with php
Posted: Mon Mar 16, 2009 1:38 pm
by omniuni
The title attribute has a history of inconsistent display between browsers.
Re: Hover with php
Posted: Mon Mar 16, 2009 4:10 pm
by Jonah Bron
Oh.

Re: Hover with php
Posted: Tue Mar 17, 2009 3:13 pm
by pickle
This is client-side. Moving to the appropriate forum.