DIR Return Create A Forum - Home
---------------------------------------------------------
Create A Forum - Support Forums
HTML https://support.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Create a Forum Codes and Support
*****************************************************
#Post#: 1298--------------------------------------------------
[Code] Add Dropdown list to Menu Buttons
DIR By: Arekay
Date: February 9, 2011, 2:43 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:
HTML http://support.createaforum.com/5/jquery-v1-8-update/
Footer:
--- Code ---
<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>
--- End Code ---
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 ---
<li><a href='LINK'><span>TITLE</span></a></li>
--- End Code ---
---------------------------------------------------------
Preview at
HTML http://www.syntaxnet.tk/
HTML http://www.syntaxnet.tk/,
look at the Help and Arcade tabs
*****************************************************
Page 1 of 1