| << F.13.0- Images | AppendixF | F.14.0- File Selector >> |
Sample Image Hotspots
The page Image01Form.htmcontains our image:
...
<BODY>
<H3>Image 01 Form</H3>
Click on the arms or legs of this pitcher.
<FORM ACTION="Image01Response.asp"METHOD="GET"><BR>
<INPUT TYPE="IMAGE" SRC="AG00414_.GIF"NAME="pitcher" WIDTH="175" HEIGHT="113">
<INPUT TYPE="SUBMIT" VALUE="SubmitQuery">
</FORM></BODY>
...
|
|
When the image is clicked, the response page Image01Response.asp displays a message telling usexactly where it was clicked:
...
<BODY>
<H3>Image 01 Response</H3>
<%
Dim varLocation
If Request.QueryString("pitcher.x")<50Then
varLocation = "right "
If Request.QueryString("pitcher.y")<50Then
varLocation = varLocation & "arm."
Else 'y point <=50 so ballplayer's legs
varLocation = varLocation & "leg."
End If
Else 'x point is >=50, ballplayer's left side
varLocation = "left "
If request.QueryString("pitcher.y")<50Then
varLocation = varLocation & "arm."
Else
varLocation = varLocation & "leg."
End If
End If
Response.Write "You clicked on the ball player's" & varLocation
%>
</BODY>
...
| << F.13.0- Images | AppendixF | F.14.0- File Selector >> |

RSS

