Menus built from images (example)

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
DarkProfit
Beginner
Beginner
Posts: 2
Joined: Thu Aug 19, 2004 8:28 pm

Menus built from images (example)

Post by DarkProfit »

I just bought the menu, and downloaded the "Menus built from images " example. but all the submenus show at the top left of image(1) and cannot for the life of me figure out how to change this?

i need it vertical and the menus to pop out to the side.

below is the code

Code: Select all



_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_subOffsetTop=5               // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset



with(AllImagesStyle=new mm_style()){
bordercolor="#000000";
borderstyle="solid";
padding=3;
fontstyle="normal";
fontweight="normal";
}


with(menuStyle=new mm_style()){
	onbgcolor="#4F8EB6";
	oncolor="#ffffff";
	offbgcolor="#DCE9F0";
	offcolor="#515151";
	bordercolor="#296488";
	borderstyle="solid";
	borderwidth=0;
	separatorcolor="#2D729D";
	separatorsize="0";
	//padding=5;
	fontsize="75%";
	fontstyle="normal";
	fontfamily="Verdana, Tahoma, Arial";
	pagecolor="black";
	pagebgcolor="#82B6D7";
	headercolor="#000000";
	headerbgcolor="#ffffff";
	subimage="arrow.gif";
	subimagepadding="2";
	//overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
//	outfilter="randomdissolve(duration=0.3)";
}


with(milonic=new menuname("Main Menu")){
style=AllImagesStyle;
top=10;
left=10;
alwaysvisible=1;
orientation="vertical";
itemwidth=250;

aI("url=http://milonic.com/;status=Back To Home Page;image=btn1-off.gif;overimage=btn1-on.gif;");
aI("showmenu=aa Samples;image=btn2-off.gif;overimage=btn2-on.gif;");
aI("showmenu=Milonic;image=btn3-off.gif;overimage=btn3-on.gif;");
aI("showmenu=Links;image=btn4-off.gif;overimage=btn4-on.gif;");
aI("showmenu=My milonic;image=btn5-off.gif;overimage=btn5-on.gif;");
}

with(milonic=new menuname("aa Samples")){
style=menuStyle;
overflow="scroll";
left=500;

aI("url=/menusample.php?sampleid=18;image=allimages_on.gif;overimage=allimages.gif;");
aI("url=/menusample.php?sampleid=12;image=xpstyle_on.gif;overimage=xpstyle.gif;");
aI("url=/menusample.php?sampleid=16;image=static_on.gif;overimage=static.gif;");
aI("url=/menusample.php?sampleid=1;image=horizontal_on.gif;overimage=horizontal.gif;");
}

with(milonic=new menuname("Milonic")){
style=menuStyle;
aI("url=http://milonic.com/cbuy.php;image=purch_on.gif;overimage=purch.gif;");
aI("url=http://milonic.com/contact.php;image=contact_on.gif;overimage=contact.gif;");
aI("url=http://milonic.com/newsletter.php;image=news_on.gif;overimage=news.gif;");
aI("url=http://milonic.com/menufaq.php;image=faq_on.gif;overimage=faq.gif;");
aI("url=http://milonic.com/forum/;image=forum_on.gif;overimage=forum.gif;");
aI("url=http://milonic.com/license.php;image=lic_on.gif;overimage=lic.gif;");
aI("url=http://milonic.com/privacy.php;image=privacy_in.gif;overimage=privacy.gif;");
aI("url=http://milonic.com/mylicenses.php;image=licenses_on.gif;overimage=licenses.gif;");
}

with(milonic=new menuname("Partners")){
style=menuStyle;
aI("text=(aq) Web Hosting;url=http://www.a-q.co.uk/;status=(aq) Web Server Hosting & Services;");
aI("text=SMS 2 Email;url=http://www.sms2email.com/;");
aI("text=WebSmith;url=http://www.softidiom.com/;");
}

with(milonic=new menuname("Links")){
style=menuStyle;
aI("url=http://www.apache.org/;status=Apache Web Server, the basis of Milonic's Web Site;image=apache_on.gif;overimage=apache.gif;");
aI("url=http://ww.mysql.com/;status=MySQL, Milonic's Prefered Choice of Database Server;image=mysql_on.gif;overimage=mysql.gif;");
aI("url=http://www.php.net/;status=PHP - Web Server Scripting as used by Milonic;image=php_on.gif;overimage=php.gif;");
}

with(milonic=new menuname("My Milonic")){
style=menuStyle;
aI("url=http://milonic.com/login.php;image=login_on.gif;overimage=login.gif;");
aI("url=http://milonic.com/myinvoices;image=invoices_on.gif;overimage=invoices.gif;");
aI("url=http://milonic.com/reqsupport.php;image=support_on.gif;overimage=support.gif;");
aI("url=http://milonic.com/mydetails.php;image=details_on.gif;overimage=details.gif;");
}

drawMenus();

any help would be great needed asap
edit: btw they do this on the milonic main site as well
im using IE6
DarkProfit
Beginner
Beginner
Posts: 2
Joined: Thu Aug 19, 2004 8:28 pm

found and fixed the problem

Post by DarkProfit »

add text=  to the menu and it fixed the problem
without the text= in the menu it will not position the submenu
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hmmmm. Did you also try text=; (no  )?

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

Post by Andy »

Hi,

I've found the bug and should get the fixed version of the menu released later today.

Look out for version 5.43.

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

Post by Andy »

update has just gone up

Cheers
Andy
Post Reply