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

RC46: Support for 'pagecolor' is gone


Poster: Martin
Dated: Thursday January 29 2004 - 15:13:22 GMT

After updating to RC46, the 'pagecolor' attribute set in style does not work anymore.


Poster: John
Dated: Thursday January 29 2004 - 16:57:39 GMT

Do you have the latest RC46? There have been at least 3 releases under that number.

Just trying to pin it down.

Thanks.


Poster: Martin
Dated: Thursday January 29 2004 - 17:09:49 GMT

Hi,

I donwloaded the latest version a few minutes ago, but it didn't solve the problem.


Poster: John
Dated: Thursday January 29 2004 - 17:21:13 GMT

OK, thanks.

Andy will have to dig into this one.


Poster: Andy
Dated: Thursday January 29 2004 - 18:17:41 GMT

No It hasn't gone it's been fixed, or at least I think it has.

The problem is this, with the menu the way it was before RC46, links like:

url=/index.php;
url=/scombo/index.php;

Would both highlight the same and this was clearly wrong.

The demo at http://www.rockmill.co.uk/MilonicTest/ is failing because the link in the data file is url=sub1.htm; What it should be is url=/MilonicTest/v5r46/sub1.htm;

If you add more than one url=sub1.htm; to the menu_data.js at the above site they would all show up in pre RC46 - In my opinion this is wrong.

There is something about Pagecolor that I just cannot seem to satisfy everybody with. There is always something that it either doesn't do is does do but shouldn't and, although it should be simple, it is in fact a very complex problem.

I'll have a rethink and see what I can do.

Cheers
Andy


Poster: Martin
Dated: Thursday January 29 2004 - 18:31:21 GMT

Hi Andy,

My URL is always like this: url=index.cfm/0004016000000000000;
Only the URL parameter will change. This worked fine in previous builds.

Maybe the new build does not check this search engine friendly url or skips the stuff after the filename completely :?:


Poster: Andy
Dated: Thursday January 29 2004 - 19:10:55 GMT

Sheesh, that took some brain power :? :? :? :?

I think I've finally cracked it. RC47 should hopefully, keep everybody happy.

Let me know how it goes.

Cheers
Andy


Poster: Martin
Dated: Thursday January 29 2004 - 21:16:14 GMT

Hi Andy,

Thanks for your BrainPower.

It's works now very well. I tested it with IE.5.5 and Mozilla 1.5

installed RC 47, still one oddity


Poster: bgreen
Dated: Friday January 30 2004 - 20:09:53 GMT

I just bought DHTML menu last week and it worked fine except for
Pagecolor. Since I was new, I got everything else working before looking for an explanation.

I see on this forum that there was a problem with Pagecolor in 46 that was improved in release 47.
So I installed 47 and it works, MOSTLY.

But I have one problem, a menu item that is highlighted when it
should NOT be:

http://www.robelle.com/welcome-menu.html

notice that the Home Page link when you pull down the first menu
is correctly highlighted as the current page. But I also see the
"Robelle" at the top left of the menu highlighted when I display this page in
IE 6.0

the menu definition in menu_data.js is as follows:

with(milonic=new menuname("Robelle Menu")){ // based on sample menu
style=menuStyle;
screenposition="center"; // not align="center";
top=93;
alwaysvisible=1;
orientation="horizontal";
aI("text=Robelle;showmenu=About;");
aI("text=What's New;showmenu=WhatsNew;url=http://www.robelle.com/products/whatsnew.html;");
aI("text=Support;showmenu=Support;url=/support/");
aI("text=Just Ask Us;showmenu=AdminSales;");
aI("text=Popular Apps;showmenu=Partners;url=http://www.robelle.com/partners/");
aI("text=Resources;showmenu=Resources;");
aI("text=Find Info;showmenu=Search;");
}

I used to have a URL= clause with the aI def for the first menu
item, but I removed it. But it is still highlighted as if it were
the current page.

Any thoughts?


Poster: Andy
Dated: Friday January 30 2004 - 20:27:56 GMT

The reason the Robelle item is highliighted is because it is showing you a path to the menu item.

You can switch this off of declaring another style for your top bar menu.

This style must not include a value for pagecolor or pagebgcolor.

I note that you have 2 styles in your data file but both are named menuStyle.

You need to name them uniquely.

i.e.

Code:
with(horizStyle=new mm_style()){. . . . .

and

with(menuStyle=new mm_style()){. . . . .


Hope this helps
Andy


Poster: bgreen
Dated: Friday January 30 2004 - 21:25:01 GMT

Andy,

Thanks. I did what you suggested and it worked. The Robelle menu item
is no longer highlighted.

But I am still a bit confused about why it was highlighted. The menu item didn't have a
URL attached to it, so what is the highlighting telling the user? You say
"The reason the Robelle item is highliighted is because it is showing you a path to the menu item." What is the path to a menu item without a URL?


In some of my horizontal menu items I used both a submenu and a url.
Nothing in your examples said this would work, or not, but it does seem to
work in practice. Nice feature. Allows me ot have a web page link that explains the submenu choices in more detail.

It would be nice to have these horizontal menu items highlighted by PageColor in my final menu design when you happen to be on the URL that matches the URL= of the menu item def. But that won't happen with
the two styles solution.

Thanks in advance.


Poster: kevin3442
Dated: Saturday January 31 2004 - 1:10:53 GMT

bgreen wrote:
Andy,You say "The reason the Robelle item is highliighted is because it is showing you a path to the menu item." What is the path to a menu item without a URL?

I believe what he means is that the feature is like a "bread crumbs" feature, where all menu selections, throughout the enire hierarchy, up to the one responsible for the currently viewed page, are highlighted; not just the single menu item that was clicked to get you where you are now. That way, the user could see, for example, which main menu item was selcted, and which submenus, etc., etc., to get to where they are now in the navigation system. By using a different style (with no pagecolor and pagebgcolor) for the main menu, you are effectively preventing the first level of the hierarchy from following that behavior... which is just fine if that's how you want it!

Kevin


Poster: bgreen
Dated: Saturday January 31 2004 - 13:07:16 GMT

Thanks for the explanation. I get it now. "Path" means the menu path to the highlighted item. The default with one style is to highlight each node in the path. Good.