We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Submenu Link Colours
Topic Started: Aug 11 2012, 01:01 PM (150 Views)
Deleted User
Deleted User

Board Address: http://thebeeandbarb.com/
Board Software: ZetaBoards
Description:

I'm currently using the code below to add additional links to my submenu

Code:
 
<script type="text/javascript">
//Add links to submenu
//By slayer766

function Add(url,name){
$("#submenu").prepend("<a href='"+url+"'>"+name+"</a>");
}

Add("#","test");
</script>


Is there anyway that the colour of the font be changed? So for example "test" is red or something?

Cheers!
Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
//Add links to submenu
//By slayer766
function Add(url, name, color) {
$("#submenu").prepend("<a href='" + url + "'><span style='color: " + color + "'>" + name + "</span></a>");
}

Add("#", "test", "#HEX");
</script>
Try that.
Offline Profile Goto Top
 
Deleted User
Deleted User

Thanks once again Cory! :)
Goto Top
 
Steve
Member Avatar
patriot
[ *  *  *  *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic