Multiple Styles

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mfurf
Super Advanced
Super Advanced
Posts: 74
Joined: Tue Sep 23, 2003 12:30 am
Location: Purling NY
Contact:

Multiple Styles

Post by mfurf »

Just wondering if in the development text for Multiple Sytles menus [Sample 5] where the most efficient means of copying the style is
horizontalStyle=new copyOf(vertStyle)
horizontalStyle.subimage = "/images/arrow_down.gif";
if the name vertStyle should not instead read verticleStyle since the latter is the name assigned to the global style being copied.
/furf
Oh Saratoga!
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

horizontalStyle=new copyOf(vertStyle)
horizontalStyle.subimage = "/images/arrow_down.gif";
Above is correct syntax. But...you are right in that vertStyle is not defined...it is a typo. What it should read is verticleStyle since that is the name of a style that is actually defined. Good catch. Andy will have to get on that one... ;)
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply