See below On Thu, 2003-04-03 at 17:36, Kevin wrote: > See my comments below: > > "Raymond Irving" <[EMAIL PROTECTED]> wrote: > > Sounds ok to me, but how about the following: > > > > lyr.setClass(name,noPreStyle); > > > > When noPreStyle is set to true the api will completely > > remove the style="..." string from <divs> and will > > ignore bgcolor, width, height, left, top, etc for > > <layers> and <ilayers>. The end result is that layers > > will be created much faster. > > How about true and 'cascade'. I was thinking for divs: > <div id="..." class="..." style="....................." > or > <div id="..." style="....................." class="..." > > the second idea above would give useful css cascade. > I can't think of any use for the first one? > > > lyr.setClass('blue_style,box_style',true); > > > > This would require the user to specify all the values > > (e.g. left,top width,etc) of the layer inside the css > > class. > > Can all 4+ browsers take multiple class definitions: > <layer class="blue_style" class="box_style"></layer>
Well, first of all, the way you would define it would be <[layer/div/etc.] class="blue_style box_style"></[layer/div/etc.]> I'm not sure about browser support though, i just looked at a few messages from the css mailing list i'm subscribed to( http://www.css-discuss.org/ ), and it appears that netscape 4 totally chokes on it, rendering neither the blue_style nor the box_style. > > > To give the user greater flexibility we could then > > allow them to pass the value 'basic' to the setClass() > > function to have the api only generate the left, top, > > width and heigth values for the style object. > > Is this just for dynapi's meaning of inline or for after > page load? > > > lyr.setClass('blue_style','basic'); > > > > What do you think? > > Great. Is this what you have been thinking of before, > or adding more to the inline style="..." attribute. > > - > Kevin > > > -- > > Raymond Irving > > > > > > --- Kevin <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > > > I've heard Raymond may be doing something in the > > > area of > > > dynapi style objects? Sorry if I've got the wrong > > > idea. > > > > > > Could we have a simple starting point by just > > > passing a class > > > name to the DynLayer constructor or e.g. > > > lyr.setClass('note'). > > > > > > The string 'class="note"' would be inserted in the > > > div/layer/ilayer > > > tag before the big 'style="..."' string so we can > > > pick up a > > > prepared style sheet class from a <style>...</style> > > > section. > > > > > > - > > > Kevin > > > > > [EMAIL PROTECTED] > > http://www.mail-archive.com/[EMAIL PROTECTED]/ > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Dynapi-Dev mailing list > [EMAIL PROTECTED] > http://www.mail-archive.com/[EMAIL PROTECTED]/ -- Dan Willemsen <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/