|
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]
|