Monday, June 13, 2005

Are you tired of the ads on the top of Xanga? Paste this code into your "Website Stats" area. Note: This only works if you are using Internet Explorer.


<!--************START HERE**********-->
<script>
 if (document.all) {
  var coll = document.getElementsByTagName('div');
  if (coll!=null) {
   for (i=0; i<coll.length; i++) {
    if (coll[i].style.height == "79px") {
    coll[i].style.display = "none";
    }
   }
  }
 }
window.onload = dostuff;
function dostuff() {
 if (document.all) {
  var coll = document.getElementsByTagName('table');
  if (coll!=null) {
   for (i=0; i<coll.length; i++) {
    if (coll[i].width == 614) {
    var objTable = coll[i];
    objTable.style.display = "none";
    }
   }
  }
 }
}
</script>
<!--************END HERE**********-->


If you use this, I recommend removing your AIM screenname from being displayed on Xanga because the online/offline icon often hangs the page preventing the code from working quickly.

3 comments:

KirbysWyfe said...

Cool.  It works.  Kind of.  When I came back to YOUR site to say "thanks," the ad now shows up on YOUR site, only it's layered over your header / title.   ...

tpaulshippy said...

That only happens while the page loads. If you wait long enough, or press ESC, it will disappear.

KirbysWyfe said...

Huh.  Nifty.