August 1999
Intermediate to advanced
1488 pages
72h 53m
English
request.imageY
The imageY property of the request object contains the y-coordinate of the imagemap request sent from the browser. These requests come in the following form, where x is the numeric x-coordinate and y is the numeric y-coordinate:
http://www.purejavascript.com/clickthru.html?x,y
Listing 8.107 pulls out the x and y coordinates passed in the request and writes them to the user's page.
<SERVER>
// Write the imageX and imageY properties to the page.
write('Y-coordinate of ISMAP: ' + request.imageY + '<BR>');
write('X-coordinate of ISMAP: ' + request.imageX);
</SERVER>
|
Read now
Unlock full access