Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Adding Submenu Content
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
[SC] Adding Submenu Content
Tweet Topic Started: Oct 11 2008, 06:44 PM (685 Views)
Vitality Oct 11 2008, 06:44 PM Post #1
Member Avatar
Tabula Rasa

Posts:
784
Group:
Former Staff
Member
#320
Joined:
Jul 26, 2008
My first jQuery script.
It's as simple as it sounds. This snippet will add content to your submenu.

Preview: http://s1.zetaboards.com/Vitcodetesting/index/
Code: HTML
 
<script type='text/javascript'>
$("#submenu").append("Content");
</script>

Put whatever you want in the quotes at the end to have it show up. Also, if you want it to go at the end of your submenu, this code will do that, but if you want it at the beginning, replace the same stuff but use this code:
Code: HTML
 
<script type='text/javascript'>
$("#submenu").prepend("Content");
</script>
Edited by Reid, Jun 15 2009, 08:25 PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic

Track Topic · E-mail Topic Time: 9:36 AM Jul 11
Hosted for free by ZetaBoards · Privacy Policy