Change the color of one link in the menu only.

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
compbumj
Beginner
Beginner
Posts: 9
Joined: Mon Aug 06, 2007 6:30 pm

Change the color of one link in the menu only.

Post by compbumj »

I am using the listbased menu found in extras\listbased_menu

Is it possible to change only one link in a submenu only?

Code: Select all

<ul>
		<li><a href="http://websites.milonic.com/milonic.com/cbuy.php>Product Purchasing Page</a></li>
		<li><a style="color:red;" href="http://websites.milonic.com/milonic.com/contact.php>Contact Us</a></li>
		<li><a href="http://websites.milonic.com/milonic.com/newsletter.php>Newsletter Subscription</a></li>
		<li><a href="http://websites.milonic.com/milonic.com/menufaq.php>FAQ</a></li>
		<li><a href="http://websites.milonic.com/milonic.com/forum/>Discussion Forum</a></li>
		<li><a href="http://websites.milonic.com/milonic.com/licenses.php>Software License Agreement</a></li>
		<li><a href="http://websites.milonic.com/milonic.com/privacy.php>Privacy Policy</a></li>
	</ul>
Notice the 'Contact Us' link has been changed... does Milonic support this or am i doing it wrong..

FYI, I am a current customer and have a valid license.
compbumj
Beginner
Beginner
Posts: 9
Joined: Mon Aug 06, 2007 6:30 pm

Re: Change the color of one link in the menu only.

Post by compbumj »

Still waiting for a response on this...
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Change the color of one link in the menu only.

Post by Ruth »

Hi,

Could you give me the link to the page? Usually I can figure out how to get something done, but I need the files to do it.

Ruth
compbumj
Beginner
Beginner
Posts: 9
Joined: Mon Aug 06, 2007 6:30 pm

Re: Change the color of one link in the menu only.

Post by compbumj »

download the menu and use the sample in the menu_sample\extras\listbased_menu directory

Thats all im trying to customize right now. If you can get that to work I will apply that to my menu :)

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

Re: Change the color of one link in the menu only.

Post by Ruth »

Hi,

Yes, you can do it. It's kind of strange, but let's say it's the Product Purchasing Page link to which you want to make changes.

The original li is

Code: Select all

<li><a href="http://websites.milonic.com/milonic.com/cbuy.php>Product Purchasing Page</a></li>
If you wrote that link as

Code: Select all

<li><a href="http://websites.milonic.com/milonic.com/cbuy.php>Product Purchasing Page;offcolor=red;oncolor=lime;</a></li>
the item would then have red text when you first opened that submenu and lime text when you moused over it. The problem with this is, if the person has js turned off and would therefore get the li menu, what they would see is just what you see in the second one I coded to get the different color.

Ruth
Post Reply