Visited links change colour

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jshepherd
Beginner
Beginner
Posts: 6
Joined: Tue Oct 24, 2006 8:35 am

Visited links change colour

Post by jshepherd »

I’m currently building a menu for our intranet and all of a sudden, the visited links from the main menu are showing a different text and background colour once they’ve been selected. I assume this due to an active link command and/or a visited link command. However, I can’t find the configuration for these to edit. Below is a copy of the primary menu configuration showing what I’ve used:

with(menuStyle=new mm_style()){
onbgcolor="#a8a9c7";
oncolor="#ffffff";
offbgcolor="#b8c2d8";
offcolor="#4d225e";
bordercolor="#296488";
borderstyle="solid";
borderwidth=0;
separatorcolor="#6699CC";
separatorsize="1";
separatorpadding="0";
itemheight="15";
itemwidth="130";
padding=5;
fontsize="11";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="red";
pagebgcolor="#f2f2f2";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="menus/arrowdn.gif";
subimagepadding="2";
}

I assume it’s doing something by default, but I’m not sure what commands to add to counteract the action. I have the main menu centralised within a table, but apart form that the menu is pretty standard/basic.

Hope you can help,

Thanks,

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

Post by John »

Best guess is something in your css. Please provide a URL. We really need to see the whole thing.
jshepherd
Beginner
Beginner
Posts: 6
Joined: Tue Oct 24, 2006 8:35 am

Post by jshepherd »

Hi,

I can't offer an external address because it's only internal. Below is the only CSS data on the page. It just deals with text links on the main page. I would have thought your menu was independent of any CSS's.


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Intranet</title>
<style type="text/css">
a:link {
color: #4d2252;
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
}
a:visited { color: #4d2252; text-decoration: none ; font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
a:hover { color: #4d2252; text-decoration: underline; font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
ul { color: #4d2252; text-decoration: underline; font-family: arial, helvetica, sans-serif; font-size: 10pt}
.style39 {color: #FFFFFF}
.style42 {font-size: 12pt}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style45 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFFFF; }
</style>
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url();
}
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
}
.style2 {color: #500}
body {
background-image: url();
background-repeat: no-repeat;
}
body {
}
body {
background-image: url();
background-repeat: no-repeat;
}
-->
</style>
</head>

Thank you for looking,

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

Post by Ruth »

Hi,

There are some generic css things that seem to affect the menu. Have you tried creating a special css class for links to apply to the menu, then call it in the menu styles where you want it to be as offclass="whateverclassyou create";onclass="whateverclassyoucreate";

Another option at least for the visited link color is to use the visitedcolor=""; and put in the color you want.

Ruth
Post Reply