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

Visited links change colour


Poster: jshepherd
Dated: Wednesday November 8 2006 - 8:29:19 GMT

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


Poster: John
Dated: Wednesday November 8 2006 - 13:58:00 GMT

Best guess is something in your css. Please provide a URL. We really need to see the whole thing.


Poster: jshepherd
Dated: Wednesday November 8 2006 - 14:05:16 GMT

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


Poster: Ruth
Dated: Saturday November 11 2006 - 20:35:48 GMT

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