Hello, Benoit had originally suggested that we use a dictionary object (hash table) to pass parameters to DynLayers but that proved must slower than using html,x,y,w,h,color. 9I think I've found a way to let the two co-exist:
Old way - The original and fastest creation method:
DynLayer(html,x,y,w,h,bgcolor)
New ways - slower but more flexible creation methods:
DynLayer({html:'Hello',x:100,y:100});
DynLayer({zIndex:2,w:100,h:100});
DynLayer({textSelectable:true});
DynLayer({anchor:{top:0,bottom:0},textSelectable:true});
DynLayer({textSelectable:false,html:'Cool!'});
DynLayer({x:100,y:100,w:10,h:10,visible:false});
inline layer - when id is set x,y,w,h,bgcolor,z and
html will be replaced with values from inline div:
DynLayer({id:'myinline'});
DynLayer({id:'boxer',anchor:{left:0:right:0}});
Optional arguments:
x,y,w,h,html,bgColor,zIndex,textSelectable,
anchor,visible,id
Changes are inside the attached dynlayer_ie.js file.
Please perform all the speed test and improvements you
can to see if the new creation method makes any sense
at all.
--
Raymond Irving
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
dynlayer_ie.zip
Description: dynlayer_ie.zip
