MUGEN Philippines
Would you like to react to this message? Create an account in a few clicks or log in to continue.
MUGEN Philippines

MUGEN Philippines is here to allow us the opportunity of experiencing a common interest. If you are a true fan of Mugen, like we are, then this is the place for you. You may chat with friends, share your Mugen creations with others, or view screenshots.
 
HomePortalGalleryLatest imagesSearchRegisterLog in

 

 Creating Tabs using layers

Go down 
2 posters
AuthorMessage
aika
Academy Student (newbie)
Academy Student (newbie)



Number of posts : 3
Reputation : 0
Points : 9
Registration date : 2009-05-01

Creating Tabs using layers Empty
PostSubject: Creating Tabs using layers   Creating Tabs using layers Icon_minitimeMay 1st 2009, 1:09 am

Save this code to your host. (must be .js)


function ddtabcontent(tabinterfaceid){
this.tabinterfaceid=tabinterfaceid //ID of Tab Menu main container
this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a") //Get all tab links within container
this.enabletabpersistence=true
this.hottabspositions=[] //Array to store position of tabs that have a "rel" attr defined, relative to all tab links, within container
this.currentTabIndex=0 //Index of currently selected hot tab (tab with sub content) within hottabspositions[] array
this.subcontentids=[] //Array to store ids of the sub contents ("rel" attr values)
this.revcontentids=[] //Array to store ids of arbitrary contents to expand/contact as well ("rev" attr values)
this.selectedClassTarget="link" //keyword to indicate which target element to assign "selected" CSS class ("linkparent" or "link")
}

ddtabcontent.getCookie=function(Name){
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
if (document
Back to top Go down
freesky
Genin 下忍
Genin 下忍
freesky


Male
Number of posts : 10
Age : 42
Location : Philippines
Reputation : 1
Points : 11
Registration date : 2010-01-03

Creating Tabs using layers Empty
PostSubject: Re: Creating Tabs using layers   Creating Tabs using layers Icon_minitimeMarch 6th 2010, 10:32 am

nice nnice
Back to top Go down
 
Creating Tabs using layers
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
MUGEN Philippines :: HTML and CSS SCRIPTS :: SCRIPTS-
Jump to: