Results 1 to 2 of 2

Thread: Certain mouse coordinates = popup window - Help!

  1. #1
    Join Date
    Mar 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Certain mouse coordinates = popup window - Help!

    So I have been assigned a task. I had a floor plan with all the room numbers and I was asked to make it to where when you hover your mouse over the certain room number, it pops up the persons credentials. And I for some reason have brain blockage...

    Any ideas on how to go about doing this? Surely its simple. Many thanks.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    It depends on how complicated it should be.

    The easiest way will be to use an image map and to setup areas, each of which is the region for a certain number. Use the onmouseover event for this area and create some Javascript function that will display the credentials as you want.

    It would be possible to avoid image maps (since they can be a bit annoying), but that would mean either converting the image into HTML (make the numbers text links and place images around it, or perhaps a single image as a background); or you could use Javascript to detect the coordinates of the mouse onmouseover for the image-- but that seems like the hardest option.

    You could also approach this using Flash.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •