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 Modifications
Topic Started: Jun 3 2013, 08:24 PM (1,104 Views)
Unitedpkz
Member
[ * ]
Board Address: http://s13.zetaboards.com/UnitedPkz_V2/index/
Board Software: ZetaBoards
Description: Make my submenu topic : "donations" come before the submenu topic: "search"


Currently using this code to make my submenu topic link to another website:
Code:
 
<script type="text/javascript">
<!-- ADD LINK TO SUBMENU BEGIN -->
function submenu(l,t,p){var l = '<a href="'+l+'">'+t+'</a>';
if(p=="before"){$("#submenu").prepend(l);}else{$("#submenu").append(l);}}
submenu("http://www.______________.com","LINK TEXT","after");
<!-- ADD LINK TO SUBMENU END -->
</script>
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
submenu("http://www.______________.com","LINK TEXT","after");
Change after to before.
Offline Profile Goto Top
 
Unitedpkz
Member
[ * ]
Cory
Jun 3 2013, 09:17 PM
Code:
 
submenu("http://www.______________.com","LINK TEXT","after");
Change after to before.
Thanks, it worked as you probably already knew.
How do I change my text color for the sub menus?
Edited by Unitedpkz, Jun 3 2013, 10:00 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
You want the option to change the color of each link or all links?
Offline Profile Goto Top
 
Unitedpkz
Member
[ * ]
Cory
Jun 3 2013, 10:10 PM
You want the option to change the color of each link or all links?


I just want to select the color red for one of my submenu links.
Edited by Unitedpkz, Jun 3 2013, 11:07 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
#submenu a[href="URL"] {
color: red;
}
Add that to your themes CSS (Edit Theme Appearance) and change URL to the submenu link you want to be colored red.
Offline Profile Goto Top
 
Unitedpkz
Member
[ * ]
Cory
Jun 3 2013, 11:15 PM
Code:
 
#submenu a[href="URL"] {
color: red;
}
Add that to your themes CSS (Edit Theme Appearance) and change URL to the submenu link you want to be colored red.
Thanks again, your something special man. I mean that in a good way.
Offline Profile Goto Top
 
Eccentric Feline
Member Avatar
梦想
[ *  *  *  *  *  *  *  * ]
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