You are here: Re: Image maps and PHP « All PHP « IT news, forums, messages
Re: Image maps and PHP

Posted by Sander on 10/13/35 11:27

"Domestos" <never.you@mind.net> schreef in bericht
news:WJXYe.14845$st1.11504@newsfe3-gui.ntli.net...
> i've got a right fricking task !
>
> I need to make thousands of pixels into a link, each pixel in the image
> needs to link to a different child-page. However putting thousands of
> links into an image map is tiresome, tedius and makes the page load very
> slowly... I even tried dynamucally creating them with php and still the
> page took ages to laod... about 15 minutes for 500,000 links... which is
> no good...
>
> Is server-side image maps my best option or can php give me somthing out
> of its deep pockets...
>
>

Here you go, save this code as index.php or rename the link in the a href
statement to the file name you save this code:


<a href="index.php"><img src="http://nl2.php.net/images/php.gif" border="0"
ismap></a>

<?PHP
$location = getenv("QUERY_STRING");
list($x, $y) = split(",", $location);

if($x)
{
print("Clicked on position: $x, $y<br>");
}
?>

Good luck


Sander Swuste

 

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

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