Access css properties like this:
myLayer.css.overflow = 'scroll'
myLayer.css.overflow = 'clip'
myLayer.css.overflow = 'auto'
You can also apply a whole css class to a dynlayer like this:
define a class in a stylesheet:
.redline {color: red; text-decoration:underline; background-color: orange; }
Apply the class to a dynLayer:
myLayer.elm.className= 'redline'
Note: The dynlayer must be created before you do either of these.
You can change class/ style on the fly.
I haven't been able to get any of this to work on NS4.
Richard.
----- Original Message -----
From: "Ricardo Rafael" <[EMAIL PROTECTED]>
To: "DynAPI Help" <[EMAIL PROTECTED]>
Sent: 16 May, 2001 21:31
Subject: Re: [Dynapi-Help] How to set/create a DynLayer scrollable with
'OVERFLOW: AUTO'?
> Hi again,
>
> Ricardo Rafael wrote:
> >
> > Hi,
> >
> > I've been using DynAPI to implement a web based application.
> >
> > I've been using the ScrollPane GUI control but now I need to set an
existing layer and (in another place) to create a new DynLayer and
dynamically change the following attribute:
> > OVERFLOW to 'auto' or 'clip' (it depends!).
> >
>
> I just want to control the clipping/scrolling effect dynamically! I
would like to mimic the 'STYLE="OVERFLOW: CLIP' / 'STYLE="OVERFLOW: AUTO' of
<DIV's>.
>
> Regarding this objective ... any help??!
> Thanks!
>
> Ricardo Rafael.
>
> _______________________________________________
> 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