Simple Machine Codes
April 19, 2024, 12:33:48 pm
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 More Tabs V1

Pages: 1 [2] 3   Go Down
  Print  
Author Topic: Add More Tabs V1  (Read 6815 times)
0 Members and 1 Guest are viewing this topic.
silent
Starter

Offline Offline

Posts: 18


View Profile
« Reply #15 on: June 10, 2008, 06:59:35 am »

Footers:
Code:
<script>
function addlinks(){
//Created by Agent Moose
$(function() {
var links = new Array()
links[0] = ["LINKS NAME","URL FOR LINK"]

for(m=0;m<links.length;m++){
$(".maintab_last").before("<td valign='top' class='maintab_back'><a href='"+links[m][1]+"'>"+links[m][0]+"</a></td>");
};});}

addlinks();
</script>

Ok, LINKS NAME is where you put the links name, then in URL FOR LINK, you get the URL of the link and place it there.  If you want to add more links, just add more of these lines:
Code:
links[0] = ["LINKS NAME","URL FOR LINK"]
Make sure you change the 0 to a 1, then if you want to add another, you would change the 1 to a 2 and so on.





Where do you place this code at? (I'm new to html coding)
« Last Edit: June 11, 2008, 01:11:51 am by Omikron 9861 » Report Spam   Logged
Pages: 1 [2] 3   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