Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:39
overflow not working
Poster: jcyr
Dated: Wednesday March 10 2004 - 19:28:35 GMT
I am testing out the Milonic code for a site and so far its working great. However the scrolling isn't working. I can't seem to figure out either what paramater sets the menu length or what I am missing... thanks for the help!
http://www.wirenh.com/newsite/indextest.cfm
Code:
with(menuStyle=new mm_style()){
onbgcolor="#000066";
oncolor="#FFCC00";
offbgcolor="#a3bbda";
offcolor="#000000";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
padding=3;
fontsize="100%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#ffffff";
headerbgcolor="#ffffff";
subimage="arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Shadow(color='000000', Direction=135, Strength=5);"}
with(milonic=new menuname("storyarchivenav")){
style=menuStyle;
overflow="scroll";
itemwidth=150;
aI("text=in brief;url=/in_brief.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=feature stories;url=/feature_stories.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=----;type=header;align=center;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=music;url=/music.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=books;url=/books.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=movies;url=/movies.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=art;url=/art.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=stage;url=/stage.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=food;url=/food.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=outside;url=/outside.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=----;type=header;align=center;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=news from space;url=/news_from_space.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=grubluv;url=/grubluv.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=the wandering eye;url=/the_wandering_eye.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=speak, fritz, speak!;url=/speak_fritz_speak.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
}
onbgcolor="#000066";
oncolor="#FFCC00";
offbgcolor="#a3bbda";
offcolor="#000000";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
padding=3;
fontsize="100%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#ffffff";
headerbgcolor="#ffffff";
subimage="arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Shadow(color='000000', Direction=135, Strength=5);"}
with(milonic=new menuname("storyarchivenav")){
style=menuStyle;
overflow="scroll";
itemwidth=150;
aI("text=in brief;url=/in_brief.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=feature stories;url=/feature_stories.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=----;type=header;align=center;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=music;url=/music.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=books;url=/books.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=movies;url=/movies.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=art;url=/art.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=stage;url=/stage.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=food;url=/food.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=outside;url=/outside.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=----;type=header;align=center;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=news from space;url=/news_from_space.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=grubluv;url=/grubluv.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=the wandering eye;url=/the_wandering_eye.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
aI("text=speak, fritz, speak!;url=/speak_fritz_speak.cfm;offfunction=imgswap('e1','e11');onfunction=imgswap('e1','e12');");
}
Poster: jcyr
Dated: Wednesday March 10 2004 - 19:33:31 GMT
I should note that I have installed the latest code (5.05) just today.
Poster: jcyr
Dated: Wednesday March 10 2004 - 19:48:35 GMT
I thought itemheight specified the size of the menu item? I want the menu to scroll after say 10 items in the list.
Poster: jcyr
Dated: Wednesday March 10 2004 - 19:50:55 GMT
Ok, I see. I need it in there, then the scrolling will work if the window is way too small. So it is working now.
Maybe the documentation should mention that if you have overflow set to scroll then you must specify the itemheight?
overflow question
Poster: rudy
Dated: Wednesday March 10 2004 - 22:48:52 GMT
If you use the overflow="scroll" without the itemheight or menuheight, won't the menu still scroll "automatically" if it is long enough where it is dropping below the users screen?
The reason I ask, is the sample menus on this site do not use the menuheight or itemheight (only the overflow="scroll") code, and yet they have scrollbars on some of the menus.