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

"Current page" indication on menu


Poster: Inuyasha
Dated: Saturday March 5 2005 - 7:02:37 GMT

In the DHTML menu, the background color for the menu item that the user is currently at is different than the other items. However there seems to be a slight problem on my site. When I navigate to the home page for the first time in the session (and thus not used the DHTML menu to get to the page), the menu looks like this:

Image

If I then click on a menu item, the menu on, say, the "Links" page, looks like this. Notice the background behind Links indicating my location in the site:

Image

The strange thing is that I then click on the Home button in the menu again, I return home, but now the background indicating that I am Home is present:

Image

How do I make the menu look as it does in the third picture when the Home page is first accessed? Thanks for your replies!


Poster: John
Dated: Saturday March 5 2005 - 7:26:48 GMT

Please provide, as requested, a URL.

Also, what browser, OS, and versions are you running?


Poster: Inuyasha
Dated: Saturday March 5 2005 - 16:55:27 GMT

John wrote:
Please provide, as requested, a URL.

Also, what browser, OS, and versions are you running?


The URL is:

http://gc.17.home.comcast.net/

I'm running Windows XP Home Edition SP2, and both Firefox 1.0.1 and Internet Explorer 6.0. The DHTML menu on the site is version 5.714.

Thanks for your help!


Poster: John
Dated: Saturday March 5 2005 - 18:05:06 GMT

It's failing on Mac as well.

At quick glance (I just got called out for fire duty), I don't see anything glaring. Try moving your JS menu calls down to the FIRST items after the body tag.


Poster: Inuyasha
Dated: Saturday March 5 2005 - 18:20:30 GMT

John wrote:
It's failing on Mac as well.

At quick glance (I just got called out for fire duty), I don't see anything glaring. Try moving your JS menu calls down to the FIRST items after the body tag.


I've moved it down below the body tag now, and the menu system still works but the problem remains, it seems...


Poster: Inuyasha
Dated: Saturday March 5 2005 - 18:25:19 GMT

Also, the script right after the body tag, which starts "function SymError()" is added after I upload the page by the server, it seems, and is always immediately after the <head> tag, so the JS menu call script has to be after it. I don't actually know what "SymError" script does, for that matter.


Poster: Ruth
Dated: Sunday March 6 2005 - 0:13:23 GMT

The url in the item is
Code:
http://home.comcast.net/~gc.17/Home.html
The url you get when you click the button to enter is
Code:
http://gc.17.home.comcast.net/Home.html?
So it is not matching.

Try coding that item with a pagematch.
Code:
aI("text=Home;url=http://home.comcast.net/~gc.17/Home.html;pagematch=http://gc.17.home.comcast.net/Home.html?;");
I'm not sure that will work. I don't know what the ? is in the url.

And, you're down a level, you need to get version5.715.

Ruth


Poster: Inuyasha
Dated: Sunday March 6 2005 - 3:10:43 GMT

Ruth wrote:
The url in the item is
Code:
http://home.comcast.net/~gc.17/Home.html
The url you get when you click the button to enter is
Code:
http://gc.17.home.comcast.net/Home.html?
So it is not matching.

Try coding that item with a pagematch.
Code:
aI("text=Home;url=http://home.comcast.net/~gc.17/Home.html;pagematch=http://gc.17.home.comcast.net/Home.html?;");
I'm not sure that will work. I don't know what the ? is in the url.

And, you're down a level, you need to get version5.715.

Ruth


No, sorry... I implemented the code you suggested, and also upgraded to the new version, but its still happening.


Poster: Ruth
Dated: Sunday March 6 2005 - 4:01:48 GMT

It is because the url in the Home item is not matching the url of the page that you don't get the pagematch. Did you try leaving out the ? in the pagematch= to see if that will work? Or try putting in
Code:
http://gc.17.home.comcast.net/ 
as the match?

Ruth


Poster: Inuyasha
Dated: Sunday March 6 2005 - 17:51:11 GMT

I got it working, thanks for your help everyone! It turns out that the URL the Home menu item was set to was an alternative URL (http://home.comcast.net/~gc.17/Home.html)... so it did not recognize http://gc.17.home.comcast.net/Home.html.