You are here: Re: getting clicked co-ordinates on an image map « HTML « IT news, forums, messages
Re: getting clicked co-ordinates on an image map

Posted by oeb on 01/26/06 15:02

paul@paullee.com wrote:
> Hi all,
> I'd like to ask a quick question. Its probably got a simple answer!
>
> I'm creating a clickable image map for a website - now this doesn't
> present any problems as I have created client side maps in the past.
> But this time, what I would like is to get the co-ordinate of the
> clicked area. Is there any way of doing this and then making those
> co-ordinates available server side?
>
> The reason for this is as follows: my map will contain many different
> areas, some overlapping, or contained within other areas.
>
> If I have just one overlapped area for two shapes, then this will lead
> to three clickable areas. With many such overlaps, the amount of
> calculation required to find such areas will be horrible (the areas are
> obtained from a database which is going to be updated on a regular
> basis).
>
> So, what I was thinking was:
> get the co-ordinates of the clicked point; do the processing server
> side and then sent the client a webpage listing all the areas "found"
> in the clicked region.
> Is this possible?
>
> Hope that makes sense!
>
> Thanks
>
> Paul
>

I don't know about xhtml, but you could always create an image map in
oldstyle html (=P) by just adding the ismap attribute to an image tag.

This will pass the coordinates along.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация