Give particular Co-ords dependant on mouseposition

They have: 51 posts

Joined: Dec 2002

http://rules.swcombine.com/galaxy/system.php?systemID=5

hold your mouse some where on the map and a tooltip with the co-ords will apepar.

http://www.centrepointstation.net/galmap/galmap.htm

move your mouse over the map and watch your browsers status bar.

I'm after a script that would display a certain co-ord dependant on the mouse position over the map.

They have: 51 posts

Joined: Dec 2002

hello?

why'd this get moved to 'Site Tools'

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Probably because you're looking for a particular script to do what you want. That's a site tool. I didn't move it though.

How is what you're looking for different from those two examples? Where do you want the co-ordinates to be dispolayed? Do you have a sample page or mock-up we could look at? I'm thinking it could be possible to hack one of those scripts to do what you want.

He has: 1,380 posts

Joined: Feb 2002

well if you are just looking for a regular co-ord postition, open Paint and do it that way...

otherwise, for an automated way on your site...check hotscripts.com and resourceindex.com

They have: 51 posts

Joined: Dec 2002

currently the co-ords are displayed via tooltip. I want them to be automatically displayed some where else on the page as you move the mouse over the image

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Certainly you could hack that script to show the mouse co-ordinates elsewhere. I'm going to move this thread back to web authoring - hopefully some Javascript folks in there will be able to help you out.

Edit: That Star Wars one actually doesn't seem to be using a script at all - looks like sliced images with title attributes to show the mouse position! In the other one the coordinates are done in a similar manner only using an image map with javascript to send the coordinates to the status bar rather than using the title attribute. What you could do with that one is set up a form to display the co-ordinates and use that instead of the status bar. Some with better javascript knowledge would be able to help with this.

They have: 51 posts

Joined: Dec 2002

oki thanks, lets hope someone knows

dk01's picture

He has: 516 posts

Joined: Mar 2002

If you can get hold of dreamweaver mx I think it might have a code snippet that allows you to do this exact thing.
-dk

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

I discovered this code when I was totally bored and surfing randomly

http://www.javascriptkit.com/script/script2/coord.shtml

Gives you mouse co-ordinates

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.