Lennie De Villiers wrote:
> They want a feature where a visitor can click on a door / window on the
> photo and then be taken to the room / location behind the door / window.

On the page, define an image map with a MAP element and one AREA element 
for each clickable area you want. Set the SHAPE and COORDS attributes to 
the coordinates of the door or window, and then set the HREF attribute 
to point to the page for the room the AREA is associated with. On the 
IMG element, associate it with the MAP element by setting the IMG's 
USEMAP attribute.

You can also use a server-side image map and process the clicked 
coordinates in the code you have on the server. Server-side image maps 
aren't very popular anymore, in part because they don't allow you to 
specify which parts of the image are clickable; the user has to click 
and wait for the server's response.

Both techniques are described in the HTML 4 specifications.

http://www.w3.org/TR/html4/struct/objects.html#h-13.6

> How would I do that? That part of the website I'm going to write as an
> ActiveForm.

ActiveForm means you have a regular TForm, and then you wrap it into an 
ActiveX control, right? In that case, I suppose you just use a TImage, 
and then handle its OnMouseDown and OnMouseUp events to detect clicks in 
the specified areas of an image. You can use the PtInRect API function 
to help you with that.

-- 
Rob


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h7gq1vl/M=362131.6882499.7825260.1510227/D=groups/S=1705115362:TM/Y=YAHOO/EXP=1123537170/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
-�brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to