Jump to content

Position Div relative to cursor?


LemonInflux

Recommended Posts

I am looking for a function so that onmouseover, will show a small div (with information about the link).

 

I could probably work it out, but I need some information:

 

How do you position the div relative to the cursor? So like, when you mouseover, the div goes 5 pixels left of the cursor, and 5 pixels down from the cursor.

 

If you have a code for this already, or know where I could get one, I'd be very greatful.

 

Thanks in advance,

 

Tom.

Link to comment
https://forums.phpfreaks.com/topic/94024-position-div-relative-to-cursor/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.