Click to See Complete Forum and Search --> : [RESOLVED] adding a seperate box...might be html, not php


Toadums
07-19-2009, 02:27 AM
Hey..I think that what I am looking for will be either a iframe or something involving jquery...

but what I want, is when people hover over a name (there are about 10 employee names on a page of my site) I would like a small bio to pop up..and sort of follow the mouse? if that makes sense...on hover.

I am thinking something like:

onmouseover("run an ajax query based on this.id and return the page corresponding...but how to display it..?")

but i am unsure how to display the page...so yeah..I cant think of an example...but pretty much when the mouse is over a name, a little like comic speech box will appear with info..except the box would be square..

if that is complex, i could just add an iframe somewhere else on the frame..are iframe's good to use? or do people tend to avoid them

any advice would be great

thanks

DaiLaughing
07-19-2009, 03:54 AM
Does it need to follow the mouse?

If not just a visibility:hidden; DIV which you file with the bio when needed and then made visible would do. In fact if there weren't too many people you could even do without AJAX and have the data load but stay invisible until needed.

cahva
07-19-2009, 09:05 AM
If you have used jquery allready, then tooltip plugin (http://docs.jquery.com/Plugins/Tooltip) is what you are lookin for.

Toadums
07-19-2009, 01:57 PM
it doesnt necessarily have to follow the mouse. but I dont really want just a div that is shown/hidden...

I like the looks of the tool tip! I will probably just try to get that to work :)

thanks!