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:24
Change the color of one link in the menu only.
Poster: compbumj
Dated: Thursday January 3 2008 - 19:24:35 GMT
I am using the listbased menu found in extras\listbased_menu
Is it possible to change only one link in a submenu only?
Code:
<ul>
<li><a href=http://www.milonic.com/cbuy.php>Product Purchasing Page</a></li>
<li><a style="color:red;" href=http://www.milonic.com/contactus.php>Contact Us</a></li>
<li><a href=http://www.milonic.com/newsletter.php>Newsletter Subscription</a></li>
<li><a href=http://www.milonic.com/menufaq.php>FAQ</a></li>
<li><a href=http://www.milonic.com/forum/>Discussion Forum</a></li>
<li><a href=http://www.milonic.com/licenses.php>Software License Agreement</a></li>
<li><a href=http://www.milonic.com/privacy.php>Privacy Policy</a></li>
</ul>
<li><a href=http://www.milonic.com/cbuy.php>Product Purchasing Page</a></li>
<li><a style="color:red;" href=http://www.milonic.com/contactus.php>Contact Us</a></li>
<li><a href=http://www.milonic.com/newsletter.php>Newsletter Subscription</a></li>
<li><a href=http://www.milonic.com/menufaq.php>FAQ</a></li>
<li><a href=http://www.milonic.com/forum/>Discussion Forum</a></li>
<li><a href=http://www.milonic.com/licenses.php>Software License Agreement</a></li>
<li><a href=http://www.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.
Re: Change the color of one link in the menu only.
Poster: compbumj
Dated: Monday January 14 2008 - 14:27:43 GMT
Still waiting for a response on this...
Re: Change the color of one link in the menu only.
Poster: Ruth
Dated: Monday January 14 2008 - 17:11:00 GMT
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
Re: Change the color of one link in the menu only.
Poster: compbumj
Dated: Monday January 14 2008 - 20:09:26 GMT
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!
Re: Change the color of one link in the menu only.
Poster: Ruth
Dated: Monday January 14 2008 - 23:27:51 GMT
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:
<li><a href=http://www.milonic.com/cbuy.php>Product Purchasing Page</a></li>
If you wrote that link as
Code:
<li><a href=http://www.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