This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > February 2004 > Onmouseover feature?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Onmouseover feature?
|
|
|
|
Hi Group,
wonder if someone can tell me if I can achieve this and
how?
I have a photo of a group of people and I want to use the
"onemouseover" (or other method if available) feature to flag up the
persons name. So I want to instruct the visitor to place the pointer
on the image and as it passes over any particular person in the
group, their name is displayed.
Is it achievable, if so can someone give me some pointers on how.
TIA
PLM
Why Gran-ma, you're just a wolf in cheap clothing! - Bugs Bunny.
| |
| Peter Connolly 2004-02-21, 6:28 am |
| PLM wrote:
> Hi Group,
> wonder if someone can tell me if I can achieve this and
> how?
>
> I have a photo of a group of people and I want to use the
> "onemouseover" (or other method if available) feature to flag up the
> persons name. So I want to instruct the visitor to place the pointer
> on the image and as it passes over any particular person in the
> group, their name is displayed.
There are many ways, but here's one that will work;
Create a layer which will contain the persons name, and give that layer a
name (e.g lPersonsName).
Create an image-map using the photograph then using the onmouseover
function, call MM_setTextOfLayer, and set the text of the layer lPersonsName
to be whatever you want to enter.
Thats all there is to it!
http://www.lisa-rocaelle.co.uk/gall...tchen/page1.htm has an example of
MM_setTextOfLayer (fired when the user clicks on the thumbnails)
http://www.agricredit.co.uk/UK/contactus.asp is a similar example, but which
uses MM_swapImage instead of MM_setTextOfLayer; photographs of the salesmen
appear on the page as the cursor rolls over their assigned areas.
HTH,
Pete.
--
Peter Connolly | Macromedia Certified Dreamweaver MX Developer
http://www.acutecomputing.co.uk
Derby
UK
| |
|
| On Sat, 21 Feb 2004 10:12:47 -0000, "Peter Connolly"
<noemailrequired@nospamrequired.com> sat down and wrote:
>
>There are many ways, but here's one that will work;
>
>Create a layer which will contain the persons name, and give that layer a
>name (e.g lPersonsName).
>
>Create an image-map using the photograph then using the onmouseover
>function, call MM_setTextOfLayer, and set the text of the layer lPersonsName
>to be whatever you want to enter.
>
>Thats all there is to it!
>
>http://www.lisa-rocaelle.co.uk/gall...tchen/page1.htm has an example of
>MM_setTextOfLayer (fired when the user clicks on the thumbnails)
>
>http://www.agricredit.co.uk/UK/contactus.asp is a similar example, but which
>uses MM_swapImage instead of MM_setTextOfLayer; photographs of the salesmen
>appear on the page as the cursor rolls over their assigned areas.
>
>HTH,
>
>Pete.
Hi Pete,
thanks for that, I didn't use that exact method as I
found that by using the image map method, as you suggested, I could
give each hotspot an "ALT" tag. Had the desired effect I was after.
Made sure that if they clicked on the hotspot nothing unnecessary
happend, which it didn't. So all they have to do is place the cursor
in the hotspot and the tag appears, just what I wanted.
Many thanks
PLM
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|