BlogOmer ... Besplatna muzika ... Software... BlogOye ... Windows Tips & Tricks ...Gomila
Windows Tips & Tricks - Privremeno dok ne opravim nešto bolje - Blogoye.org

Privremeno dok ne opravim nešto bolje

objavio: tehničar kategorija:
var prevIndex=-1; function TabClick(tabId,Index) { if(prevIndex >-1 ){ var pTab = el(tabId + prevIndex +"Tab") var pCon = el(tabId + prevIndex +"Content") pTab.className = "tab"; pCon.style.display = "none"; } var cTab = el(tabId + Index +"Tab") var cCon = el(tabId + Index +"Content") cTab.className = "seltab"; cCon.style.display = "block"; prevIndex = Index; } function el(sId){ if(********.layers) { return ********.layers[sId]; } if (********.all) { return ********.all(sId); } else { return ********.getElementById(sId); } } function WhichTabs(width,height) { this.width = (!isNaN(width))?width:""; this.height = (!isNaN(height))?height:""; this.spacing = 1; this.defaultTab = 0; this.id = "WhichTabs1"; this.tabWidth = Math.round( (this.width/this.count) - ( this.spacing * (this.count-1) ) ); this.tabs = new Array(); this.addTab = _addTab; this.build = _build; return this; } function tab(caption,content,content_type){ this.caption = caption; this.content = content; this.content_type = content_type; return this; } function _addTab() { this.count = this.tabs.length + 1; this.tabs[this.tabs.length] = new tab(); this.tabs[this.tabs.length-1].caption = arguments[0]; var s; switch (arguments[2]){ case 1: s = arguments[1]; break; case 2: s = ""; break; case 3: s = ""; break; default: s = arguments[1]; } this.tabs[this.tabs.length-1].content = s; } function _build(){ var s,s2=""; s ="" s += ""; for(var i=0;i"; s2 += "
"+ this.tabs[i].content +"
"; if (i 0 ) { s += " "; } } s += "
 
" s += s2 + "
"; ********.write (s); TabClick(this.id,this.defaultTab); }

komentari:

  Naslovna strana | Napravi blog | Prijavite se