New conversion from version 3

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
crawley
Advanced
Advanced
Posts: 24
Joined: Tue Sep 17, 2002 2:22 pm
Contact:

New conversion from version 3

Post by crawley » Tue Feb 03, 2004 4:53 pm

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 ... atorsize=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 ... atorsize=1")
aI("text=COMPETITIONS;url=http://www.curzoncinemas.com/competitio ... atorsize=1")
}
Sharon

User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John » Tue Feb 03, 2004 5:21 pm

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

crawley
Advanced
Advanced
Posts: 24
Joined: Tue Sep 17, 2002 2:22 pm
Contact:

Here's a url

Post by crawley » Tue Feb 03, 2004 6:05 pm

Sharon

User avatar
Ruth
 Team
 Team
Posts: 8761
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth » Tue Feb 03, 2004 11:44 pm

Your menu data file contains this on bordercolor

Code: Select all

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

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

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

crawley
Advanced
Advanced
Posts: 24
Joined: Tue Sep 17, 2002 2:22 pm
Contact:

I've done it and it nearly works!

Post by crawley » Wed Feb 04, 2004 10:33 am

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...
Sharon

User avatar
Ruth
 Team
 Team
Posts: 8761
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth » Wed Feb 04, 2004 5:57 pm

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

Code: Select all

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);

crawley
Advanced
Advanced
Posts: 24
Joined: Tue Sep 17, 2002 2:22 pm
Contact:

oh boy

Post by crawley » Wed Feb 04, 2004 6:40 pm

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......
Sharon

User avatar
Ruth
 Team
 Team
Posts: 8761
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth » Wed Feb 04, 2004 9:44 pm

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

Post Reply