Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
x,y based map?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ian Campbell  
View profile  
 More options Dec 7 1998, 3:00 am
Newsgroups: comp.lang.javascript
From: Ian Campbell <i...@islandnet.com>
Date: 1998/12/07
Subject: x,y based map?
I've got a dhtml drag and drop script and I want to detect when the
dragged object moves over a rectangular area (just like an image map).
Is there some javascript code that will do this (that I can plug my
imagemap coords into)?

Otherwise, is there any way to sense whether a layer is touching another
layer? (Is it cross browser?)

thanks!
--
Ian Campbell - http://www.islandnet.com/~ianc -
secretdeadmediamachinecollage.etc...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jim Ley  
View profile  
 More options Dec 8 1998, 3:00 am
Newsgroups: comp.lang.javascript
From: NewsySt...@noiro.prestel.co.uk (Jim Ley)
Date: 1998/12/08
Subject: Re: x,y based map?
On Mon, 07 Dec 1998 23:40:16 -0800, Ian Campbell <i...@islandnet.com>
wrote:

>I've got a dhtml drag and drop script and I want to detect when the
>dragged object moves over a rectangular area (just like an image map).
>Is there some javascript code that will do this (that I can plug my
>imagemap coords into)?

I assume your script is a found one, not one you've written as it's a
relatively simple extension of the script to do this (that is it's
relative to the difficulty of designing the drag & drop script, so
it's not a trivial task.)

>Otherwise, is there any way to sense whether a layer is touching another
>layer? (Is it cross browser?)

Both problems are possible, they are simple checks to see if the the
layer.top, and layer.left are in appropriate positions, (adjusted for
offset from the top left of the screen and plus the height and stuff
of the layer and stuff.)

If no-one else comes up with a source code you can change, if you want
to e-mail me the Drag & Drop script you've got and what sort of thing
you want to do, I'll have a look and depending on the time I've got,
I'll get something working. (Posted to group if interested.)

>Ian Campbell - http://www.islandnet.com/~ianc -
>secretdeadmediamachinecollage.etc...

What's a secret dead media machine collage?


Jim  

(Is this a better no-answer and the one which generated the geez Jim
thread?)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google