1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- function clickHandler( tabHeads,tabBodys,obj ) {
-
- for ( var k = 0, len = tabHeads.length; k < len; k++ ) {
- tabHeads[k].className = "";
- }
- obj.className = "focus";
-
- var tabSrc = obj.getAttribute( "tabSrc" );
- for ( var j = 0, length = tabBodys.length; j < length; j++ ) {
- var body = tabBodys[j],
- id = body.getAttribute( "id" );
- body.onclick = function(){
- this.style.zoom = 1;
- };
- if ( id != tabSrc ) {
- body.style.zIndex = 1;
- } else {
- body.style.zIndex = 200;
- }
- }
- }
- function switchTab( tabParentId ) {
- var tabElements = $G( tabParentId ).children,
- tabHeads = tabElements[0].children,
- tabBodys = tabElements[1].children;
- for ( var i = 0, length = tabHeads.length; i < length; i++ ) {
- var head = tabHeads[i];
- if ( head.className === "focus" )clickHandler(tabHeads,tabBodys, head );
- head.onclick = function () {
- clickHandler(tabHeads,tabBodys,this);
- }
- }
- }
- switchTab("helptab");
- document.getElementById('version').innerHTML = parent.UE.version;
|