mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
탭방식 위젯 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3056 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b4189996e1
commit
15d04b5744
12 changed files with 538 additions and 1 deletions
22
widgets/tab_newest_document/skins/xe_official/js/tab.js
Normal file
22
widgets/tab_newest_document/skins/xe_official/js/tab.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
function overTab(obj) {
|
||||
var tab_id = obj.id;
|
||||
|
||||
var cObj = obj.parentNode.firstChild;
|
||||
while(cObj) {
|
||||
if(cObj.nodeName == "DIV" && cObj.id) {
|
||||
var cTabID= cObj.id;
|
||||
if(cTabID.indexOf('tab')<0) continue;
|
||||
var cContentID = cTabID.replace(/^tab/,'content');
|
||||
|
||||
if(tab_id == cTabID) {
|
||||
cObj.className = "tab on";
|
||||
xGetElementById(cContentID).className = "tabContent show";
|
||||
} else {
|
||||
cObj.className = "tab";
|
||||
xGetElementById(cContentID).className = "tabContent hide";
|
||||
}
|
||||
}
|
||||
cObj = cObj.nextSibling;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue