SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: snap/intellitxt like mouseover

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    snap/intellitxt like mouseover

    I'm not looking to match words, or run ads, but I do have a box I'd like to appear above a link on mouseover. I can position it, but I'd like it to "stick" better than it does (it can move if you move your mouse after a second right now).

    Can anyone point me to some sample code for creating a floating layer like this?

  2. #2
    SitePoint Addict SitePoint Award Recipient
    Join Date
    Apr 2001
    Location
    Devon, UK
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your best bet it to position the box relative to the co-ordinates of the hovered element (not the mouse cursor position). Unless that element changes position, the box will remain where it is no matter where the cursor moves.
    Optimalworks Ltd web design and IT consultancy, Devon UK
    http://www.optimalworks.net/

    We produce elegant, standards-based, accessible websites:
    Valid XHTML, CSS, JavaScript, DOM scripting, AJAX, PHP, .NET

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yup, that'd be perfect.

    All I'm looking to do is have a javascript called onmouseover and have this div appear and stay up if someone wanted to click on it, or the link.

    Anyone have any pointers/samples?

  4. #4
    SitePoint Guru
    Join Date
    Apr 2007
    Posts
    813
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it is somewhat like flickr image description, I like thiscss approach

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •