vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Move/Copy Info Center Above Boards

Move/Copy Info Center Above Boards - Posted By Marc (cr0w) on 10th Dec 07 at 4:17am
Description: This code moves your info center above your boards, and gives the option to show/hide the info center at the bottom.

Part One of Two:

Main Page Header
Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. // Move/Copy Info Center Above Boards
  4. // Coded by Cr0w, December 2007
  5. // Main Page Header
  6.  
  7. var tdWidth = '92%' //Change to match your forum
  8.  
  9. // Do not edit below
  10. document.write('<div id="info_center_here" style="width: '+tdWidth+';text-align: center;margin: 0 auto"></div><br /><br />');
  11. //-->
  12. </script>
 


Part Two of Two:

Main Page Footer
Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. // Move/Copy Info Center Above Boards
  4. // Coded by Cr0w, December 2007
  5. // Main Page Footer
  6.  
  7. var hideOld = 1; //0 = keep info center at bottom, 1 = hide bottom info center
  8.  
  9. // Do not edit below
  10. var ic=document.getElementById("info_center");
  11. var nic = ic.cloneNode(true)
  12. document.getElementById("info_center_here").appendChild(nic);
  13. if(hideOld==1){
  14. ic.style.display = "none";
  15. }
  16. //-->
  17. </script>