Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:45

New conversion from version 3


Poster: crawley
Dated: Tuesday February 3 2004 - 15:53:50 GMT

Hi - I just converted my menus and it went well with one little thing - I have a border around my menus, top , bottom and sides - I have one vertical following menu and one horizontal following menu. But the vertical menu has lost its verical border and the horizontal one has lost its horizontal border. here's part of the code for the horizontal menu (which has lost its horizontal border)- any clues?

_menuCloseDelay=500;
_menuOpenDelay=150;
_scrollAmount=3;
_scrollDelay=20;
_followSpeed=5;
_followRate=50;
_subOffsetTop=5;
_subOffsetLeft=10;


with(ScrollingSampStyle=new mm_style()){
offcolor="#33FFCC";
offbgcolor="#000000";
oncolor="#000000";
onbgcolor="#D0CDF1";
bordercolor="#6633cc";
borderstyle="solid";
bordercolor="black";
fontsize="12";
fontstyle="normal";
fontweight="bold";
fontfamily="arial narrow";
padding=3;
separatorcolor="#6633cc";
}

with(milonic=new menuname("Main")){
top=146;
borderwidth=21;
screenposition="center";
style=ScrollingSampStyle;
alwaysvisible=1;
followscroll=1;
orientation="horizontal";
aI("text=HOME;url=http://www.curzoncinemas.com/index.html;;separatorsize=1")
aI("text=WHAT'S ON;showmenu=listings;;separatorsize=1")
aI("text=EVENTS;showmenu=allevents;;separatorsize=1")
aI("text=CURZON SOHO;showmenu=CURZONSOHO;;separatorsize=1")
aI("text=CURZON MAYFAIR;showmenu=CURZONMAYFAIR;;separatorsize=1")
aI("text=MEMBERSHIPS & SUBSCRIBE;showmenu=MEMBERS;;separatorsize=1")
aI("text=LINKS;showmenu=LINKSmenu;;separatorsize=1")
aI("text=TICKETS;showmenu=TICKETS;;separatorsize=1")
aI("text=NEWS;url=http://www.curzoncinemas.com/news.shtml;;separatorsize=1")
aI("text=COMPETITIONS;url=http://www.curzoncinemas.com/competition.shtml;;separatorsize=1")
}


Poster: John
Dated: Tuesday February 3 2004 - 16:21:12 GMT

Please post a URL (as requested). "...part of the code..." can frequently leave something out we really need to see.

Here's a url


Poster: crawley
Dated: Tuesday February 3 2004 - 17:05:01 GMT

http://www.curzoncinemas.com/sohocafeold.htm


Poster: Ruth
Dated: Tuesday February 3 2004 - 22:44:43 GMT

Your menu data file contains this on bordercolor
Code:
with(ScrollingSampStyle=new mm_style()){
offcolor="#33FFCC";
offbgcolor="#000000";
oncolor="#000000";
onbgcolor="#D0CDF1";
bordercolor="#6633cc";
borderstyle="solid";
bordercolor="black";
fontsize="12";
fontstyle="normal";
fontweight="bold";
fontfamily="arial narrow";
padding=3;
separatorcolor="#6633cc";
}
get rid of the bordercolor="black"; and also put in borderwidth=1; That will bring back the border in the main horizontal menu and also in the vertical ones. I see you tried to add a wider border for the submenus. The only thing I could get to work was to copy and paste that style you already have, rename it to submenus or something and then change the borderwidth=2; don't forget to go back to put whatever name you use for the style in the submenus instead of the ScrollingSampleStyle you have, if you do that.

Also, in your menus there are items duplicated and some missing

Code:
aI("text=HOME;url=http://www.curzoncinemas.com/index.html;;separatorsize=1")
you need to get rid of the double ;; and you also need to put a ; right before the " at the end, and then another one right after the ) so it would look like this
Code:
aI("text=HOME;url=http://www.curzoncinemas.com/index.html;separatorsize=1;");
I'm not sure why you have that separatorsize there, you can declare it in the main style right after separatorcolor. Hope that helps.

Ruth

I've done it and it nearly works!


Poster: crawley
Dated: Wednesday February 4 2004 - 9:33:41 GMT

Hi Ruth thanks for all that - Andy Woolley also helped me with this but didn't mention anything about the "seperator=1" but even without that it did work.

The one little thing left is (and I've reported this to Andy as well) the horizontal menu doesn't work in Opera 7.23 http://www.curzoncinemas.com/soholistings.shtml

Which i upgraded in the first place... oh dear...


Poster: Ruth
Dated: Wednesday February 4 2004 - 16:57:28 GMT

Interesting, it shows in Opera 7.11 but gives me the following error

Code:
Statement on line 16: Expression evaluated to null or undefined and is not convertible to Object: _fgp
Backtrace:
  Line 16 of linked script http://www.curzoncinemas.com/mmenudom.js
    if (_fgp[0] - _sT != _tt)
  In unknown script
    followScroll("3", 50, 2);

oh boy


Poster: crawley
Dated: Wednesday February 4 2004 - 17:40:23 GMT

where do you see that? on the font page or on the link? - Any suggestions anyone ? - I just upgraded to Opera 7.23 so can't see any errors......


Poster: Ruth
Dated: Wednesday February 4 2004 - 20:44:44 GMT

I used Opera 7.11 and that is a little window it throws up with that text in it. The menu shows and seems to work fine.

Ruth