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


 Creating Tabs using layers

Go down 
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.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")

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
Genin 下忍
Genin 下忍

Number of posts : 10
Age : 37
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
View user profile
Creating Tabs using layers
Back to top 
Page 1 of 1
 Similar topics
» Clothes Layers
» Advice for creating a toy room
» Step by step to making opening book
» Make up a story using the words given to you.

Permissions in this forum:You cannot reply to topics in this forum
Jump to: