mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 22:29:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3056 201d5d3c-b55e-5fd7-737f-ddc643e51545
22 lines
660 B
JavaScript
22 lines
660 B
JavaScript
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;
|
|
}
|
|
|
|
}
|