Yes, like this:
(if you make it into a widget you might need
to use the oncreate event instead of onprecreate.)
(unless you hack open dynlayer, and add a setClass
function)
.flat {
color: #996699; background-color: #eeeeee; border-style: outset; text-align: center; font-weight : bold; padding: 5px; /*border: 5px;*/ /*margin: 5px;*/ } .outset { color: #996699; background-color: #eeeeee; border-style: outset; text-align: center; font-weight : bold; padding: 5px; } .inset { color: #996699; background-color: #eeeeee; border-style: inset; text-align: center; font-weight : bold; padding-left: 4px; padding-top: 6px; } .highlight { color: #996699; background-color: #dddddd; border-style: outset; text-align: center; font-weight : bold; padding: 5px; } DynAPI. {
button1 = new
DynLayer(null,100,40,100,40)
button1.setHTML('Click Me')
DynAPI.document.addChild(button1);
var c=button1.elm c.className='flat' var l=new
EventListener()
l. {c.className='outset'} l. {c.className='highlight'} l. {c.className='flat'} l. {c.className='inset'} button1.addEventListener(l) }
I just saw I might have forgotten the .elm bit in
the previous post, ah well, I'll just up the unfinished example
here:
Only tested in IE mind you.
Cheers,
Richard Bennett [EMAIL PROTECTED]
www.richardinfo.com (Everything running on, and ported to DynAPI2.53) 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
|
- [Dynapi-Help] Converting an external stylesheet.. Kasper Schnell
- Re: [Dynapi-Help] Converting an external stylesheet.. Richard Bennett
- Re: [Dynapi-Help] Converting an external stylesheet.. Jim
- Re: [Dynapi-Help] Converting an external stylesheet.. Richard Bennett
- Re: [Dynapi-Help] Converting an external stylesheet.. Kasper Schnell
- Re: [Dynapi-Help] Converting an external styleshe... Richard Bennett