Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: javascript property question


Message #1 by "wenjun deng" <denwe02@c...> on Wed, 25 Jul 2001 22:15:32
Hi 
I saw this code used to define the property of a menu. Is there any other 
way to write this?
Where can I find the resource introducing the following method?
Thanks a lot!
 

MenuTree = {
		MenuWidth        : MenuWidth = eval(TreeParams[0]),
		MenuLeft         : MenuLeft =0, 
		MenuTop          : MenuTop = 0,
		ItemWidth        : ItemWidth = MenuWidth - (BorderWidth*2),
		ItemTextWidth    : TreeHasChildren ? (ItemWidth - 
(ImageSize + ImageSpc + ItemPadding)) : ItemWidth,
		HorizOffsetRight : HorizOffsetRight = ItemPadding,
}

  Return to Index