473,396 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Landing in the Right Spot

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.

Maybe someone could let me know if this is a simple 'add a few lines
of code', or a major programing effort.

Thanks,
Murray
Jul 21 '05 #1
2 1739
in comp.infosystems.www.authoring.stylesheets, Murray J wrote:
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.
Doesn't look like job for CSS.
Maybe someone could let me know if this is a simple 'add a few lines
of code', or a major programing effort.


I think you must use JS, as I can't think any other way to scroll image
to right position, and allow scrolling every corner of image.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 21 '05 #2
"Murray J" wrote in comp.infosystems.www.authoring.stylesheets:
I have an HTML page which is an image map with a 4 X 4 grid of 'hot
spots', linking to other HTML pages,


These links will help you:
http://smjg.port5.com/faqs/usenet/xpost.html
http://www.cs.tut.fi/~jkorpela/usenet/xpost.html

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Murray J | last post by:
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...
1
by: Bob (remove 'excise-' to reply) | last post by:
I've got a form with three controls: a left-docked richtextbox, a right-docked form, and a right-docked listview. When I resize the form, the listview increases and decreases, the splitter...
1
by: antipode | last post by:
That's about it. If I make a cursor of any size and color depth, the button to set the hot spot stays disabled. I'm at my wit's end, and yet I know it's got to be something stupid I'm missing.
9
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I disable the right mouse button? -----------------------------------------------------------------------...
2
by: eloi-ribeiro.blogspot.com | last post by:
Hi, I'm having a problem with a query. I'm running Access 2000 and a table with 35000 rows. The table contains several visits to the spots with a CODE (spot code) and DATE (visit date)...
3
by: wellscrambled | last post by:
Not quite sure where to start with this one; can anyone point me in the right direction? I send emails to my customers which contain various links. When the customer clicks the link embedded...
1
by: Harsha | last post by:
Hi, I am using curl to capture the contents of the web page into a variable, but i am having problems when the url given to curl gets redirected to another page. Please suggest me, is there a...
7
by: trochia | last post by:
Hello, and thank-you for reading this. I have used the the advanced serach functions to see if my question has already been addressed, but I get no results. My search was in PHP forums for: ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.