onsubimage property steals properties from host cell

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
cubefree
Super Advanced
Super Advanced
Posts: 82
Joined: Fri Aug 01, 2003 3:16 am
Location: Seattle, WA
Contact:

onsubimage property steals properties from host cell

Post by cubefree »

This regards V5_RC4, of course.

Perhaps I am misinterpreting the intended use of this property, but what I did was experiment with the subimage (usually the arrow image).

I added a subimage property to the xpmenu sample page. Specifically in the menu /File/Print This Page. Upon doing so, I noticed that the subimage, took the mouseover onbgcolor and onborder properties of the host cell.

This cell "Print This Page" of File, has a blue bgcolor and bordercolor. When I added the subimage to the item's properties, the sub image took the blue bgcolor and bordercolor away from the host cell WHEN rolled-over.

Code: Select all

	with(milonic=new menuname("Filemenu")){_c=1
	top="offset=3"
	style=XPMenuStyle;
	borderwidth=1;
	orientation="vertical";
	bgimage="images/winxp_back.gif";
	margin=2;
	aI("text=Menu Home Page;url=/;image=images/xpwidth.gif;");
	aI("text=XP Menu Sample;url=menusample.php?sampleid=25;showmenu=Links;onsubimage=images/penfold_over.gif;");
	aI("text=Print This Page;url=javascript:self.print();showmenu=Legal;status=Print This Page;image=images/xpprint.gif;separatorsize=1;onsubimage=images/cmm_arrow2_on.gif;");
	aI("text=Search;url=http://www.google.com/;target=_blank;image=images/xpsearch.gif;");
	aI("text=Other Links;showmenu=Colors;image=images/xpsearch.gif;onsubimage=images/penfold_over.gif;");
	}

See more code here:
Mouseover "Program Information", then down the menu to "Core Plan" see what I mean?
http://www.cubefree.com/clients/provide ... zontal.htm

I am viewing in IE 5.5 / Windows2000

Hope that helps,
cubefree
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

It was a bug in RC4.

RC5 at http://milonic.com/v5_rc5/xpmenu.htm should fix it.

Cheers
Andy
Post Reply