Detect mouse location etc....

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 6th, 2007, 11:43
New Member
Join Date: Dec 2007
Location: australia
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote

  #2 (permalink)  
Old Dec 6th, 2007, 12:22
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 19:35.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43