Difference between revisions of "User:Quolnok/common.js"

From The Infosphere, the Futurama Wiki
Jump to navigation Jump to search
(Blanked the page)
Line 1: Line 1:
function toggleShow(anchor) {
  var text = anchor.innerHTML;
  if(text==textShow) {
    var dis = 'table-row';
  } else {
    var dis = 'none';
  }
  var p = anchor.parentNode;
  while(p.tagName!='TABLE')
    var p = p.parentNode;
  var trs = p.getElementsByTagName('tr');
  for(var i = 0; i < trs.length; i++) {
    if(hasClass(trs[i], 'canhide')) {
      trs[i].style.display = dis;
    }
  }
  if(text==textShow) {
    anchor.innerHTML = textHide;
  } else {
    anchor.innerHTML = textShow;
  }


  if(skin="vector")
  {
    columnAreaImageB();
  }
}

Revision as of 09:20, 4 April 2010