Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
SubMenu Reordering ?; Organizing the SubMenu ?
Topic Started: Sep 20 2008, 01:57 PM (685 Views)
Niknok Seyer
Member Avatar
Member
[ * ]
Can I reorder the SubMenu ?

Is there such a thing ?

Is it possible ?
Offline Profile Quote Post Goto Top
 
Dan T
Member Avatar
document.createElement("Alcohol")
[ *  * ]
yes its possible, just takes alittle javascript
Offline Profile Quote Post Goto Top
 
Niknok Seyer
Member Avatar
Member
[ * ]
Dan T
Sep 21 2008, 01:46 AM
yes its possible, just takes alittle javascript
actually..

I've tried deleting and re-adding them again.

yet.. the delete code we have here looks for the exact string.

(so I can't add a new link with the same title as the old one)

...

can anyone help me with this ? :|
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
You could just replace the contents of the submenu, it would be easier.

Code: HTML
 
<script type="text/javascript">
//<![CDATA[
$("#submenu").html('<a href="'+main_url+'search">Search</a>');
//]]>
</script>
Offline Profile Quote Post Goto Top
 
Niknok Seyer
Member Avatar
Member
[ * ]
Viral
Sep 21 2008, 05:24 AM
You could just replace the contents of the submenu, it would be easier.

Code: HTML
 
<script type="text/javascript">
//<![CDATA[
$("#submenu").html('<a href="'+main_url+'search">Search</a>');
//]]>
</script>
I tried this but.. the only SubMenu that worked is Search.

Code: HTML
 

<script type="text/javascript">
//<![CDATA[
$("#submenu").html('<a href="'+main_url+'site">Portal</a>');
$("#submenu").html('<a href="'+main_url+'members">Members</a>');
$("#submenu").html('<a href="'+main_url+'calendar">Calendar</a>');
$("#submenu").html('<a href="'+main_url+'boardrules">Rules</a>');
$("#submenu").html('<a href="'+main_url+'faq">FAQ</a>');
$("#submenu").html('<a href="'+main_url+'search">Search</a>');
//]]>
</script>
Edited by Niknok Seyer, Sep 21 2008, 08:46 AM.
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
Code: HTML
 
<script type="text/javascript">
//<![CDATA[
var links = [];l=0
links[l++] = ["link","text"];
links[l++] = ["link","text"];
links[l++] = ["link","text"];
var newSub = '';
for(var i=0;i<links.length;i++){newSub += '<a href="'+links[i][0]+'">'+links[i][1]+'</a>';}
$("#submenu").html(newSub);
//]]>
</script>
Offline Profile Quote Post Goto Top
 
Niknok Seyer
Member Avatar
Member
[ * ]
Viral
Sep 21 2008, 11:57 AM
Code: HTML
 
<script type="text/javascript">
//<![CDATA[
var links = [];l=0
links[l++] = ["link","text"];
links[l++] = ["link","text"];
links[l++] = ["link","text"];
var newSub = '';
for(var i=0;i<links.length;i++){newSub += '<a href="'+links[i][0]+'">'+links[i][1]+'</a>';}
$("#submenu").html(newSub);
//]]>
</script>
thanks. ;)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Coding & Modifications · Next Topic »
Add Reply