PDA

View Full Version : AnyLink style



entertheraptor
02-11-2009, 12:37 PM
1) AnyLink Menu

2) http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Ok, at the risk of sounding stupid, How do you apply style to the anchor link? After scanning the code briefly it appears that you can apply a style class to the drop down menus but not to the anchor link itself. Also can you format the text in the dropdown to control the text color when the link has been "visited" etc?

Help please.

Snookerman
02-11-2009, 12:50 PM
Use this:

.anylinkmenu ul li a {
//style for the anchor here
}

and this:

.anylinkmenu ul li a:visited {
//style for the visited anchor here
}


Good luck!

entertheraptor
02-11-2009, 01:20 PM
Ok, the first line of code already exists in the .css file and is having no effect on the anchor link style and the second line set the text in the dropdown to the styled color perminantly regardless of if the link was visited or even being hovered over.

Snookerman
02-11-2009, 01:41 PM
Please post a link to the page on your site that contains the problematic script or attach your code so we can check it out and help you.

entertheraptor
02-11-2009, 02:40 PM
Testing on local computer. It's not up on a site. the code that I'm refering to is the AnyLink code and files in thier standard form. As it comes straight out of the box. See first post for description of the issue.

Thanks

ddadmin
02-11-2009, 10:27 PM
If you mean how to style the actual anchor link, for example:


<p><a href="http://www.dynamicdrive.com" class="menuanchorclass" rel="anylinkmenu1">Default Example</a></p>

You would just style either the "menuanchorclass" class in this case, or add the desired inline style into the A element above.


Also can you format the text in the dropdown to control the text color when the link has been "visited" etc?

Please refer to Snooker's reply above, which should answer that.