News:

Create A Forum Installed

Author Topic: [Code] Add Dropdown list to Menu Buttons  (Read 2007 times)

0 Members and 1 Guest are viewing this topic.

Offline Arekay

  • Newbie
  • *
  • Posts: 16
  • Karma: 1
  • Gender: Male
  • Weeee!
    • View Profile

Badges: (View All)
Topic Starter Combination Level 2
[Code] Add Dropdown list to Menu Buttons
« on: February 09, 2011, 08:43:06 am »
This code will add a dropdown list to the menu buttons that don't already have one.



This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/
Footer:
Code: [Select]
<script type="text/javascript">
   /*Created by Arekay www.symtaxnet.tk*/
                if(document.getElementById("button_PLACE")!==null) $("li#button_PLACE").append("<ul><li><a href='LINK'><span>TITLE</span></a></li><li><a href='LINK'><span>TITLE</span></a></li>/*EXTRA*/</ul>");
</script>

Relplace PLACE with which button you want:
  • Home= home
  • Help= help
  • Search= search
  • Arcade= arcade
  • Logout= logout
  • Login= login
  • Register= register
Replace LINK with the link you want

Replace TITLE with the text that will show in the dropdown list

If you want more than two links, Replace /*EXTRA*/ with
Code: [Select]
<li><a href='LINK'><span>TITLE</span></a></li>
Preview at http://www.syntaxnet.tk/, look at the Help and Arcade tabs
« Last Edit: August 12, 2012, 03:43:59 pm by xboi209 »

Share on Facebook Share on Twitter


 

Related Topics

  Subject / Started by Replies Last post
2 Replies
2476 Views
Last post July 09, 2020, 07:22:49 am
by mickjav
6 Replies
1502 Views
Last post April 14, 2012, 06:32:00 pm
by conductor
0 Replies
467 Views
Last post November 11, 2014, 08:54:33 pm
by CyanProductions
1 Replies
487 Views
Last post February 16, 2018, 03:33:04 pm
by CreateAForum
14 Replies
1346 Views
Last post March 23, 2019, 11:12:32 pm
by CreateAForum