How to I reference my variables
Posted on 2001-07-30
I'm using gd functions to combine a map and a square which marks a grid reference on the map. Here's the code (it's the entire file map3.php):
$icon = ImageCreateFromPNG("images/square.PNG");
$trans = ImageColorAt($icon, 30,30);
$width = ImageSX($icon);
$height = ImageSY($icon);
I'm accessing it from a link as follows:
The problem is that I have very little control over the result because it is just an image, no html. I want, for instance, to be able to add a caption to the window title bar, add more html to the result, scroll to where the square appears, add a close button inside the window, remove the margins, but I can't do any of these things. I've tried using an html file which includes the image tag <img src="map3.php border="0"> but it's not picking up the coordinates which position the square.
I've also tried using window.open and window.showmodaldialog. These give me greater control but I cannot, for instance, caption the window or add a close button or scroll to where the square appears.
If anybody can help I'd be very grateful.