cw-body-all.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //forum//
  2. function $() {
  3. var Ptr=document.getElementById("tab").getElementsByTagName("tr");
  4. for (i=1;i<Ptr.length+1;i++) {
  5. Ptr[i-1].className = (i%2>0)?"t1":"t2";
  6. }
  7. }
  8. window.onload=$;
  9. for(var i=0;i<Ptr.length;i++) {
  10. Ptr[i].onmouseover=function(){
  11. this.tmpClass=this.className;
  12. this.className = "t3";
  13. };
  14. Ptr[i].onmouseout=function(){
  15. this.className=this.tmpClass;
  16. };
  17. }
  18. //forum end//
  19. //tabsbar//
  20. function selectTag(showContent,selfObj){
  21. // ������ǩ
  22. var tag = document.getElementById("tags").getElementsByTagName("li");
  23. var taglength = tag.length;
  24. for(i=0; i<taglength; i++){
  25. tag[i].className = "";
  26. }
  27. selfObj.parentNode.className = "selectTag";
  28. // ��������
  29. for(i=0; j=document.getElementById("tagContent"+i); i++){
  30. j.style.display = "none";
  31. }
  32. document.getElementById(showContent).style.display = "block";
  33. }
  34. var real_height=document.documentElement.clientHeight;
  35. document.getElementById("tagContent").style.height=real_height-40+"px";
  36. //alert(document.documentElement.clientHeight)
  37. //alert(document.getElementById("tagContent").style.height)
  38. //tabsbar end//