You should use this syntax
myLayer.doc.images['imagename']

See the examples Image_Rollover, and Image_Rollover_Button.html here:

Richard_Examples
http://www.richardinfo.com/?menu=examples&node=1

Cheers,
Richard Bennett

[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)
visit the DynAPI homepage (and FAQ) ::
http://dynapi.sourceforge.net/dynapi/index.php?menu=1
Browse (and search) the mailinglist here:
http://www.mail-archive.com/index.php3?hunt=dynapi



----- Original Message -----
From: "Matthias Scheja" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 26, 2001 8:59 PM
Subject: [Dynapi-Help] image rollover inside layer does not work in Netscape


> I have problems with an image rollover that works in IE but not in
Netscape.
>
> 1) I created a layer:
> layer1=new DynLayer(null,11,24,203,116)
>
> 2) the HTML for that layer includes the following line:
> <a href=\"advocacy_untreaty.html\" onmouseover=\"over('button1')\"
> onmouseout=\"out('button1')\"><img name=\"button1\"
> src=\"images/advocacy_untreaty_out.gif\" width=\"71\" height=\"23\"
border=\"0\" alt=\"\">
>
> 3) the rest of the js code relevant:
> button1_on = new Image();
> button1_on.src = "images/advocacy_untreaty_over.gif";
> button1_off = new Image();
> button1_off.src = "images/advocacy_untreaty_out.gif";
>
> function over(img) {
> document[img].src=eval(img+"_on.src");
> return true;
> }
>
> function out(img) {
> document[img].src=eval(img+"_off.src");
> return true;
> }
>
>
> Can somebody tell me what I have to change to make the rollover work in
> Netscape, too?
>
> thx, Matthias
>
> --
> --
> Bischofsweg 50, 01099 Dresden, Germany
> +49-(0)351-8024153
>
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to