Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Submenu -> UL
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] Submenu -> UL
Tweet Topic Started: Aug 17 2008, 10:27 AM (973 Views)
HolySavior Aug 17 2008, 10:27 AM Post #1
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
place this anywhere under the <!-- SUBMENU -->

It will wrap the submenu links in a list so you can customize it even more.

Code:
 
<script type="text/javascript">
$("#submenu").append("<ul id='newsubmenu'></ul>");
$("#submenu a").each(function(){
$(this).appendTo("#newsubmenu").wrap("<li></li>");
});
</script>
Edited by Reid, Jun 15 2009, 08:24 PM.
Offline Profile Goto Top
 
Jesus Aug 17 2008, 11:34 AM Post #2
Member Avatar
The Holy Savior

Posts:
180
Group:
Member
Member
#85
Joined:
Jul 18, 2008
Coding language
Ruby on Rails
What does customizing the submenu do? :o
Posted Image
Offline Profile Goto Top
 
HolySavior Aug 17 2008, 12:20 PM Post #3
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
it was kind of a question/request on ZB so people can use tabs and what not for the submenu when they are themeing.
Offline Profile Goto Top
 
Jesus Aug 17 2008, 01:22 PM Post #4
Member Avatar
The Holy Savior

Posts:
180
Group:
Member
Member
#85
Joined:
Jul 18, 2008
Coding language
Ruby on Rails
Oh ok :P So its sorta something for the designers then?
Posted Image
Offline Profile Goto Top
 
HolySavior Aug 17 2008, 02:26 PM Post #5
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
yeah pretty much.
Offline Profile Goto Top
 
ZapTap Oct 6 2008, 02:10 PM Post #6


Posts:
73
Group:
Member
Member
#896
Joined:
Sep 8, 2008
Coding language
HTML/CSS
this may be quite useful...

either way, nice code ;)
Offline Profile Goto Top
 
lirts Dec 21 2008, 04:11 PM Post #7


Posts:
204
Group:
Member
Member
#207
Joined:
Jul 22, 2008
Coding language
HTML/CSS
Is there any CSS that is supposed to go with this?
"We fear that which we do not see."

"Our minds are limited by what we know, not what we believe."
Posted Image
Legion of Shadows! Join The Community! Join The RP! Join the Legion!! Click the pic to view!

Offline Profile Goto Top
 
HolySavior Jan 9 2009, 02:02 PM Post #8
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
no but it allows you to use css
Offline Profile Goto Top
 
viperver1 Jan 11 2009, 10:13 PM Post #9
Member Avatar


Posts:
100
Group:
Member
Member
#1,984
Joined:
Jan 9, 2009
Coding language
Everything
Is there a preview to this so that I can see it work? I just wondering if you do.

Anyway, nice code.
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