script: http://www.dynamicdrive.com/dynamici...pmenuindex.htm
This script is great! But i can't seem to figure out how to change the font color in the menus. Can you help me out?
thanks!
script: http://www.dynamicdrive.com/dynamici...pmenuindex.htm
This script is great! But i can't seem to figure out how to change the font color in the menus. Can you help me out?
thanks!
Well, the easiest way is like so...
Simply wrap it with a font color tag.Code:menu1[0]='<a href="http://www.javascriptkit.com" target="_new"><font color="black">JavaScript Kit</font></a><br>'
Thanks!
Or if you wanted to change the font color of all text inside the menu, an easier and more elegant way is to use CSS, by add a "color" declaration inside the stylesheet:
Code:<style type="text/css"> #dropmenudiv{ position:absolute; color: red; border:1px solid black; font:normal 12px Verdana; line-height:18px; z-index:100; } </style>
@ddadmin
That'll only work if You put a plain text inside the menus. Well, it's a hyperlink, it'll only change it's style if the "A selector" is declared.
Oh yes, forgot about that.Originally Posted by gigabites
So, the below would also need to be added:
Thanks for pointing it out.Code:#dropmenudiv a{ color: red; }
Anytime ddadmin![]()
Where is does either of the these code go and which page? 1. On the Html page that use the code 2. anylinkmenu.css 3. anylinkmenu.js 4. menucontent.js
I have tried to put every where but the right place. thank you for you time.
Last edited by longverb; 03-11-2010 at 09:42 PM. Reason: did not complete my thoughts
All references to the .css and .js files of the script should go in the HEAD section of your page. So would any global CSS such as:
Code:<style type="text/css"> #dropmenudiv{ position:absolute; color: red; border:1px solid black; font:normal 12px Verdana; line-height:18px; z-index:100; } </style>
DD Admin
Bookmarks