You are here: Re: mouse click « PHP Programming Language « IT news, forums, messages
Re: mouse click

Posted by Chung Leong on 03/19/06 23:51

chsadaki@hotmail.com wrote:
> HI
> I am working on a project for the university, I need to know if there
> is a method in php that returns the x,y of the mouse click. cos I need
> it to allocate some positions on a map of my city.
>
> thanx in advance
> shameram sadaki

Yes, if you're talking about a server-side image map. If you have the
following on a page:

<form>
<input type="image" name="cmap" src="campus_map.jpg">
</form>

when the user clicks on a spot on the picture, the browser would sent
the variable pair cmap.x and cmap.y to the server. These two can be
retrieved in PHP from the $_GET array at the indices "cmap_x" and
"cmap_y".

Server-side image map is a somewhat outdated technique however. People
nowadays usually use client-side image maps instead.

 

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

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