This is a discussion on "Detect mouse location etc...." within the JavaScript Forum section. This forum, and the thread "Detect mouse location etc.... are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Detect mouse location etc....
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Detect mouse location etc....
I need a routine to detect the mouse location on a click. Test that location against a table of locations meant to emulate imagemap areas and to jump to an URL on a match for a particular location.
What's happening is that I have a webpage with a fixed background and text scrolling over the top of it. (mbccc.net) I wanted to use an imagemap on the background and jump to locations from clicks on the imagemap. But you can't have links on a background. So I've figured this is the way to do it. Please excuse me for asking but Javascript is not my area of expertise. regards, ab |
|
|
|
|||
|
Re: Detect mouse location etc....
That sounds like an accessibility/usability disaster.
Image maps are bad enough, but you want a fake one that is entirely dependent on javascript? Wouldn't it be better to make a real image map with fixed positioning, and simply overlay the content with a higher z-index (and a transparent background)? That way at least you can use real links, not nasty, faked javascript links. Of course, you'd then need a hack for IE6 fixed positioning. Ugh. What a mess. The best solution would be to abandon the whole idea. It sounds terrible. Do you really want your navigation items to be partially obscured by your content? |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Popup Name Detect | RobinDeanDotCom | JavaScript Forum | 0 | Feb 24th, 2007 22:35 |
| Detect IE | Totti | JavaScript Forum | 4 | Dec 6th, 2006 00:48 |
| Possible to detect which stylesheet in use? | mar2195 | JavaScript Forum | 9 | Nov 25th, 2006 11:43 |
| Detect whether connection to external url is possible | simonneaves | Classic ASP | 3 | Oct 24th, 2005 13:12 |
| detect pop-up blocker - different | bert | JavaScript Forum | 0 | Jul 22nd, 2005 10:30 |