vForums Support > Programming & Coding :: Code Requests & Support :: > Remove Head and Base image from Welcome Table

Remove Head and Base image from Welcome Table - Posted By GlitchesSocom (ravenelle) on 8th Nov 08 at 2:41pm
I need a code that will remove the head and base images from my welcome table please.

Re: Remove Head and Base image from Welcome Table - Posted By GlitchesSocom (ravenelle) on 9th Nov 08 at 2:54am
BUMP

Re: Remove Head and Base image from Welcome Table - Posted By GlitchesSocom (ravenelle) on 9th Nov 08 at 6:23pm
Nevermind I figured it out myself. I'm pretty happy with myself I getting the hang of JavaScript.

This is what I did:

Global Header
Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Remove Welcome and User Table Header and Base Images
  4. by GlitchesSocom
  5. www.GlitchesSocom.vforums.co.uk */
  6.  
  7. var h=document.getElementsByTagName("table");
  8. for(i=0;i<h.length;i++)
  9. if(h[i].className=="head welcometable")
  10. h[i].style.display="none";
  11.  
  12. var b=document.getElementsByTagName("table");
  13. for(i=0;i<b.length;i++)
  14. if(b[i].className=="base welcometable")
  15. b[i].style.display="none";
  16. // -->
  17. </script>
  18.  
 

Re: Remove Head and Base image from Welcome Table - Posted By dog199200 (dog199200) on 10th Nov 08 at 12:35am
{Smile} I'll try and see what I can do on this. If I can do this, then i'll have it to you some time tomorrow {Smile}

Re: Remove Head and Base image from Welcome Table - Posted By GlitchesSocom (ravenelle) on 10th Nov 08 at 2:56am
 
Nevermind I figured it out myself. I'm pretty happy with myself I getting the hang of JavaScript.

This is what I did:

Global Header
Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Remove Welcome and User Table Header and Base Images
  4. by GlitchesSocom
  5. www.GlitchesSocom.vforums.co.uk */
  6.  
  7. var h=document.getElementsByTagName("table");
  8. for(i=0;i<h.length;i++)
  9. if(h[i].className=="head welcometable")
  10. h[i].style.display="none";
  11.  
  12. var b=document.getElementsByTagName("table");
  13. for(i=0;i<b.length;i++)
  14. if(b[i].className=="base welcometable")
  15. b[i].style.display="none";
  16. // -->
  17. </script>
  18.  
 


Hey maybe you just didn't see this sorry and thanks anyways {Cool}

Re: Remove Head and Base image from Welcome Table - Posted By dog199200 (dog199200) on 10th Nov 08 at 3:03am
oh sorry I was on a lagging pc when I looked at the thread {Smile} well good luck then