Visited Links Color Won't Change In Menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
chbrandt
Beginner
Beginner
Posts: 4
Joined: Mon Apr 19, 2004 7:16 am
Contact:

Visited Links Color Won't Change In Menu

Post by chbrandt »

I am having trouble with the color of visited links in my menu. I looked around and found the command Visited-Color: and put that in all of my CSS tags, and still the color remains black, even though I specified it to be white.

I am using

visited-color: #ffffff;

in my menu.css file. http://www.pbhs2004.com/index1.htm then go to Misc>Class Members. After you visit class members, go back to index1.htm, then to class members again, the Misc is in black text, not white.

I have also added visitedcolor="#ffffff"; to my menu_data.js file.

If anyone could help or point me in the right direction it would be greatly appreciated. Maybe there is another place to change it or I'm just doing something wrong?

Thanks,
Chris
chbrandt
Beginner
Beginner
Posts: 4
Joined: Mon Apr 19, 2004 7:16 am
Contact:

Any Ideas?

Post by chbrandt »

Does anyone have an idea that I can just try? Thanks

http://www.pbhs2004.com/


Chris
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

There is no hyphen

visitedcolor=

http://milonic.com/styleproperties.php

maz
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

I added

Code: Select all

visitedcolor="green"; 
to my menu_data.js in the style definition section and it worked for me. Although a number of links that I had been to previously were already green!
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
chbrandt
Beginner
Beginner
Posts: 4
Joined: Mon Apr 19, 2004 7:16 am
Contact:

Still Having Problems...

Post by chbrandt »

Alright...this is gettin really weird. Check out what I did, I made everything in menu_data.js "ffffff", so everything appears white on index1.htm. The same coding is being used on classmembers.htm, but it comes up with the Misc in black text. I made another html page called classmembers2.htm and it worked correctly, but when I renamed it to classmembers.htm, the Misc started showing up in black again, so it has to be something in the code that has to do with Misc and not really just the visited link, but like the visited menu heading..I dunno what to call it. Check it out, I really dont understand. Please look at my code and help me out.

http://www.pbhs2004.com/milonic/menu_data.js
http://www.pbhs2004.com/index1.htm - works correctly
http://www.pbhs2004.com/classmembers.htm - page not working

Thanks again

Chris
chbrandt@tcmax.net
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Does it also occur if you are on pages: Reunion and Pictures too?

I've wondered about this myself, I've seen this occur when there is no url in the menu item, only showmenu.

maz
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Chris,

Just taking a cursory look, at least part of the problem is the presence of pagecolor and pagebgcolor in your menuStyle... pagebgcolor is set to white right now, but pagecolor is set to black... which is why the "Misc" item in your test is black. Apparently, the pagecolor property takes precedence over the visitedcolor property. I'd suggest removing pagecolor (and pagebgcolor if you aren't using it) from your style, and see if that takes care of it.

Hope that helps,

Kevin
chbrandt
Beginner
Beginner
Posts: 4
Joined: Mon Apr 19, 2004 7:16 am
Contact:

Wow...thank you so much!

Post by chbrandt »

Thanks a lot, thats what the problem was! :) Woulda never figured that out tho! :)

Chris
Post Reply