Glen, this is just what I needed. Many thanks.
It seems we could use a good test/doc/grid of the css object properties ...
ideally linked into the webreview grid of css browser support. I'll look
further into this -- if anyone knows of existing doc or resources or has
suggestions please ... I'll start testing the list of properties Pascal sent
(on Win2000 IE5.5, NS4.7, NS6, and MacOS IE 5, NS4.7).
Greg
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Glen Deas
Sent: Saturday, February 10, 2001 8:19 AM
To: [EMAIL PROTECTED]
Subject: Re: [Dynapi-Help] can we add style to a DynLayer?
Here's a snippet of working code. Tested in ie 5.5 and ns6, win98:
http://sandymermaid.com/graphics/css_example.html
It doesn't work in most ns browsers
Richard also sent you a sniplet at http://www.richardinfo.com/ in his "Drag
Another Layer Example". I guess you missed it.
Glen
----- Original Message -----
From: "Greg Bumpus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 10, 2001 10:46 AM
Subject: RE: [Dynapi-Help] can we add style to a DynLayer?
>
> >>Not sure how they all work, but you should be able to figure it out.
>
> OK. if you say so. but
>
> DynAPI.document.addChild(topblue);
>
> topblue.setHTML('<p class="homer">doh!</p>') ;
> topblue.css.fontFamily('serif') ;
>
> returns [line number]Object doesn't support his action. (Win2000/IE5.5)
>
> from what I've read here and in the tuts, this should be the right
approach.
> I need a morsel, just a snippet of working code . . . </pathetic_pleading>
>
> Thanks for the list of properties. I wouldn't expect browsers to support
all
> or them (yet), but they should conform to the known limitations of their
CSS
> implementations,available at
> (http://www.webreview.com/style/css1/charts/mastergrid.shtml)
>
> Greg
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Pascal
> > Bestebroer
> > Sent: Friday, February 09, 2001 10:56 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [Dynapi-Help] can we add style to a DynLayer?
> >
> >
> > you can only access the .css properties after adding the layer to a
parent
> > object.
> >
> >
> > Pascal Bestebroer
> > [EMAIL PROTECTED]
> > http://www.dynamic-core.net
> >
> > > -----Oorspronkelijk bericht-----
> > > Van: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]Namens Lluis Casany
> > > Verzonden: vrijdag 9 februari 2001 18:40
> > > Aan: '[EMAIL PROTECTED]'
> > > Onderwerp: RE: [Dynapi-Help] can we add style to a DynLayer?
> > >
> > >
> > > error: 'myLayer.css' is not an object.
> > >
> > > should I to include any lib special lib?
> > >
> > > thanks in advance.
> > >
> > > -----Mensaje original-----
> > > De: Pascal Bestebroer [mailto:[EMAIL PROTECTED]]
> > > Enviado el: viernes, 09 de febrero de 2001 18:26
> > > Para: [EMAIL PROTECTED]
> > > Asunto: RE: [Dynapi-Help] can we add style to a DynLayer?
> > >
> > >
> > > you can set style properties using the css property of the DynLayer
> > >
> > > myLayer.css.mycssproperty=myvalue
> > >
> > >
> > > Pascal Bestebroer
> > > [EMAIL PROTECTED]
> > > http://www.dynamic-core.net
> > >
> > > > -----Oorspronkelijk bericht-----
> > > > Van: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED]]Namens Lluis Casany
> > > > Verzonden: vrijdag 9 februari 2001 18:17
> > > > Aan: '[EMAIL PROTECTED]'
> > > > Onderwerp: [Dynapi-Help] can we add style to a DynLayer?
> > > >
> > > >
> > > >
> > > > Is there any method or system to add style in a Layer?
> > > >
> > > > something like that:
> > > >
> > > > myLayer.addStyle('font-family:verdana; font-size: 9pt');
> > > > myLayer.setHTML('hi there!');
> > > >
> > > > thanks in advance.
> > > >
> > > > _______________________________________________
> > > > 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
> > >
> > > _______________________________________________
> > > Dynapi-Help mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> > >
> >
> >
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> >
>
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help