Simple Machine Codes
March 29, 2024, 02:12:47 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Add Drop-down next to Inbox V1

Pages: [1]   Go Down
  Print  
Author Topic: Add Drop-down next to Inbox V1  (Read 545 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: July 19, 2007, 09:53:50 am »

Code:
<script>
$(document).ready(function() {
//Created by Agent Moose and HolySavior
mname = "Links"

var dropdown = new Array()
dropdown[0] = ["Arcade","http://beta.zetaboards.com/MooseCreations/pages/arcade/"]

$("#top_menu").append("<li id='thismenu'><a href='#' class='modal'><img src='http://209.85.62.27/static/1/m_ucp.png' /> "+ mname +"</a><ul id='haha'></ul></li>");
for(y=0;y<dropdown.length;y++){
$("#haha").append("<li><a href='"+ dropdown[y][1] +"'>"+ dropdown[y][0] +"</a></li>");
};
});
</script>

This adds a new drop-down menu next to the inbox with what ever links you want in it.
How it works...

Code:
mname = "MAINNAME"
basicly it is like Inbox and Preferences.  just change the MAINNAME part to whatever you want it to be called.

Code:
dropdown[0] = ["NAME OF OPTION","URL FOR OPTION"]

If you want to add more options, just add more of these lines:
Code:
dropdown[x] = ["NAME OF OPTION","URL FOR OPTION"]

and increase the x one each time you add another line...example:
Code:
dropdown[0] = ["google","http://google.com"]
dropdown[1] = ["yahoo","http://yahoo.com"]

Preview...
http://beta.zetaboards.com/MooseCreations/...x/?setskin=1763
Report Spam   Logged

Share on Facebook Share on Twitter



Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy