"Current page" indication on menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Inuyasha
Beginner
Beginner
Posts: 6
Joined: Sat Mar 05, 2005 7:47 am
Contact:

"Current page" indication on menu

Post by Inuyasha »

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

Post by John »

Please provide, as requested, a URL.

Also, what browser, OS, and versions are you running?
John
Inuyasha
Beginner
Beginner
Posts: 6
Joined: Sat Mar 05, 2005 7:47 am
Contact:

Post by Inuyasha »

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

Post by John »

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.
John
Inuyasha
Beginner
Beginner
Posts: 6
Joined: Sat Mar 05, 2005 7:47 am
Contact:

Post by Inuyasha »

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...
Inuyasha
Beginner
Beginner
Posts: 6
Joined: Sat Mar 05, 2005 7:47 am
Contact:

Post by Inuyasha »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

The url in the item is

Code: Select all

http://home.comcast.net/~gc.17/Home.html
The url you get when you click the button to enter is

Code: Select all

http://gc.17.home.comcast.net/Home.html?
So it is not matching.

Try coding that item with a pagematch.

Code: Select all

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
Inuyasha
Beginner
Beginner
Posts: 6
Joined: Sat Mar 05, 2005 7:47 am
Contact:

Post by Inuyasha »

Ruth wrote:The url in the item is

Code: Select all

http://home.comcast.net/~gc.17/Home.html
The url you get when you click the button to enter is

Code: Select all

http://gc.17.home.comcast.net/Home.html?
So it is not matching.

Try coding that item with a pagematch.

Code: Select all

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

http://gc.17.home.comcast.net/  
as the match?

Ruth
Inuyasha
Beginner
Beginner
Posts: 6
Joined: Sat Mar 05, 2005 7:47 am
Contact:

Post by Inuyasha »

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.
Post Reply