overflow not working

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jcyr
Beginner
Beginner
Posts: 9
Joined: Mon Feb 23, 2004 9:29 pm

overflow not working

Post by jcyr »

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: Select all

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');");
}
jcyr
Beginner
Beginner
Posts: 9
Joined: Mon Feb 23, 2004 9:29 pm

Post by jcyr »

I should note that I have installed the latest code (5.05) just today.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

menuheight
itemheight

take your pick

maz
jcyr
Beginner
Beginner
Posts: 9
Joined: Mon Feb 23, 2004 9:29 pm

Post by jcyr »

I thought itemheight specified the size of the menu item? I want the menu to scroll after say 10 items in the list.
jcyr
Beginner
Beginner
Posts: 9
Joined: Mon Feb 23, 2004 9:29 pm

Post by jcyr »

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?
User avatar
rudy
Mega User
Mega User
Posts: 161
Joined: Thu Jan 15, 2004 11:39 pm
Location: Scottsdale, Arizona
Contact:

overflow question

Post by rudy »

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.
Rudy
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Correct, Rudy.
John
jcyr
Beginner
Beginner
Posts: 9
Joined: Mon Feb 23, 2004 9:29 pm

Post by jcyr »

I wasn't able to get it to work that way. I took directly from samples. Not sure why, but it is working now. Maybe it has to do with the fact that I trigger the menu from javascript.

thanks.
Post Reply