Some Programing Needed

M

Murray J

I am not sure if this is the proper group for this, however, I am sure
someone will redirect me if necessary.

I have an HTML page which is an image map with a 4 X 4 grid of 'hot
spots', linking to other HTML pages, each of which contains a large
(3200px X 2560px) image. I would like to capture the co-ordinates of
the mouse at the instant when it is clicked on the first image,
apply some mathematics based on which 'hot spot' was clicked, and come
up with a new set of co-ordinates. When the destination page is
opened, I would like the viewport to be at those new co-ordinates on
the 3200px X 2560px image on the page.

I suspect this will require some programing in languages I know
nothing about, and haven't the time to learn at the moment.

If anyone is interested in this project for the challenge and/or cash,
please give me a shout at (e-mail address removed) .

Thanks,
Murray
 
S

Scott Bryce

Murray said:
I am not sure if this is the proper group for this, however, I am sure
someone will redirect me if necessary.

If anyone is interested in this project for the challenge and/or cash,
please give me a shout at (e-mail address removed) .

Try at alt.comp.perlcgi.freelance
 
D

David H. Adler

I am not sure if this is the proper group for this, however, I am sure
someone will redirect me if necessary.

We live to serve. :)

You have posted a job posting or a resume in a technical group.

Longstanding Usenet tradition dictates that such postings go into
groups with names that contain "jobs", like "misc.jobs.offered", not
technical discussion groups like the ones to which you posted.

Had you read and understood the Usenet user manual posted frequently to
"news.announce.newusers", you might have already known this. :) (If
n.a.n is quieter than it should be, the relevent FAQs are available at
http://www.faqs.org/faqs/by-newsgroup/news/news.announce.newusers.html)
Another good source of information on how Usenet functions is
news.newusers.questions (information from which is also available at
http://www.geocities.com/nnqweb/).

Please do not explain your posting by saying "but I saw other job
postings here". Just because one person jumps off a bridge, doesn't
mean everyone does. Those postings are also in error, and I've
probably already notified them as well.

If you have questions about this policy, take it up with the news
administrators in the newsgroup news.admin.misc.

http://jobs.perl.org may be of more use to you

Yours for a better usenet,

dha
 
J

Joe Smith

Murray said:
I would like to capture the co-ordinates of
the mouse at the instant when it is clicked on the first image,

Read up on HTML documentation on the ISMAP attribute of <IMG>.
apply some mathematics based on which 'hot spot' was clicked, and come
up with a new set of co-ordinates.

That's pretty trivial. What have you tried?
When the destination page is opened, I would like the viewport to be
at those new co-ordinates on the 3200px X 2560px image on the page.

What's a viewport? Whatever it is, it needs to work with Opera,
Safari, and Netscape/Mozilla/Firefox.
-Joe
 
B

bigmur77

Joe said:
Read up on HTML documentation on the ISMAP attribute of <IMG>.
<a href="xy.cgi"><img src="first-image.png" ismap></a>

ISMAP sends the co-ordinates to some program on a server.????
That's pretty trivial. What have you tried?

Trivial only to those who know the answer.
What's a viewport?

Screen 800 X 600
Image 3200 X 2560
Viewport - that 800 X 600 window I look through.

Whatever it is, it needs to work with Opera,
Safari, and Netscape/Mozilla/Firefox.
-Joe

-BigMur
 
J

Joe Smith

ISMAP sends the co-ordinates to some program on a server.????

Why so many question marks? The ISMAP attribute has been
around for ages, possibly HTML version 1 or 2. It was used
over ten years ago by the Xerox PARC Map Viewer
(http://www2.parc.com/istl/projects/mapdocs/).

http://www.htmlhelp.com/reference/html40/special/img.html

Another way of doing it (used by MapQuest and such) is to use
<input type="image" src="first-image.png">
in the middle of a FORM.

http://www.htmlhelp.com/reference/html40/forms/input.html

When the graphical submit button is clicked, the coordinates
of the click are sent with the form submission as name.x=x-value
and name.y=y-value where name is the value of the NAME attribute,
x-value is the click's pixels from the left of the image, and
y-value is the click's pixels from the top of the image.
Trivial only to those who know the answer.

I meant that once you get the coordinates from the browser,
the math is trivial. Agreed: getting the coordinates can
be daunting if you haven't checked reference material.
Screen 800 X 600
Image 3200 X 2560
Viewport - that 800 X 600 window I look through.

If you're using a browser, you won't get the full 800x600.
The browser provides a window typically 740 x 500 with scroll
bars. The position of the browser's scroll bars is not
something under a web server's control.

-Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top