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.
 
HomePortalGalleryFAQSearchUsergroupsRegisterLog in

Share | 
 

 Creating Tabs using layers

View previous topic View next topic Go down 
AuthorMessage
aika
Academy Student (newbie)
Academy Student (newbie)


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

PostSubject: Creating Tabs using layers   May 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
View user profile
freesky
Genin 下忍
Genin 下忍
avatar

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

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

nice nnice
Back to top Go down
View user profile
 
Creating Tabs using layers
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Clothes Layers
» Advice for creating a toy room
» Creating Account Taiwan
» Creating a rFactor server.
» Diablo 2 Error when creating game

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