I found that building the roll-overs in advance in a wisiwig app such as
dreamweaver,
then putting the img tags into the layer, and the pre-built functions into
your doc would work fine..
----- Original Message -----
From: "Robert Rainwater" <[EMAIL PROTECTED]>
To: "Matthias Scheja" <[EMAIL PROTECTED]>
Sent: Monday, March 26, 2001 11:55 PM
Subject: Re: [Dynapi-Help] image rollover inside layer does not work in
Netscape
>
> If your images are in a dynlayer, then use:
> layer1.doc.images['someimg'].src = ...
>
> where layer1 is a reference to a dynlayer.
>
> This will work in NS and IE or if they arent in a layer, just use:
> document.images['someimg'].src ...
>
> --
> Robert Rainwater
>
>
> On 3/26/2001, 1:59:04 PM EST, Matthias wrote about "[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
>
>
>
> _______________________________________________
> 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