Newsgroup: it.comp.lang.javascript
Titolo: A cosa serve ???

Scusate la lunghezza del msg..... ma sapete per caso cosa fa questo
"programmino" ??
var IW= 0;
var IH= 0;
var PX= 0;
var PY= 0;
var brand= null;
var IMGW= 117;
var IMGH= 18;
var LSAFETY= 40;
var TSAFETY= 17;
var off_image= "/images/watermark/geocities.gif";
var on_image= "/images/watermark/geocities_color.gif";
var gandalf= 0;
var ourLays= new Array();
var alldivs= new Array();
alldivs= document.all.tags("DIV");
function BrandInit(){
if (brand!= null) return;
else{ 
  ID_CHECK:  for (i=0; i<alldivs.length; i++){
    if ((gandalf==0)&&(alldivs(i).id == "GeoBranding")){
      gandalf=1;
      brand= alldivs(i);
      continue ID_CHECK;
    }
    if(gandalf==1){
      if(alldivs(i).id== "nh1"){
        pop_menu= alldivs(i);
        continue ID_CHECK;
      }
    ourLays[ourLays.length]= alldivs(i);
    }
  }
}
brand.onmouseover= neat_mouseover;
brand.onmouseout= neat_mouseout;
}
function neat_mouseover(){
window.status= "Free Home Pages";
return true;
}
function neat_mouseout(){
window.status= "";
return true;
}
function BrandPosition(){
if(brand!= null){
  IH= document.body.clientHeight;
  IW= document.body.clientWidth;
  PX= document.body.scrollLeft;
  PY= document.body.scrollTop;
  brand.style.top= (IH+PY-(IMGH+TSAFETY));
  brand.style.left=(IW+PX-(IMGW+LSAFETY));
  for (i=0; i<alldivs.length; i++){
    if (alldivs(i).style.zIndex > brand.style.zindex)
      brand.style.zindex= (alldivs(i).style.zIndex + 1);
  }
}
}
function BrandShow(toggle){
if(brand!= null)
  brand.style.display= toggle;
}
function Branding(){
if (navigator.appVersion.indexOf("Mac") == -1){
  oldIW= IW;
  oldIH= IH;
  oldPX= PX;
  oldPY= PY;
  if ((document.body.clientHeight != oldIH)||(document.body.clientWidth != oldIW)||(document.body.scrollLeft != oldPX)||(document.body.scrollTop != oldPY)){
    BrandInit();
    if(window != window.top){
      var ourDoc= "";
      var ourDocWidth= 0;
      var ourDocHeight= 0;
      var ourDocTest= 0;
 
var ourDocTemp= 0;
      var ourDocFull= "";
      var allFrames= window.top.document.all.tags('frame');
      if(allFrames.length==0) allFrames=
window.top.document.all.tags('FRAME');
      for(i=0;i<allFrames.length; i++){
        var tempLoc= allFrames(i).src;
        if(tempLoc.indexOf("http") == -1){
          ourDocTemp= allFrames(i).width * allFrames(i).height;
          if(ourDocTemp>ourDocTest){
            ourDoc= allFrames(i);
            ourDocTest= ourDocTemp;
          }
        }
      }
      frameIndex=
window.top.location.href.substring(0,window.top.location.href.lastIndexOf("/
"));
      ourDocFull= frameIndex+"/"+ourDoc.src;
    }
    if((brand != null)&&((ourDocFull==
window.location.href)||(!ourDoc)||(!ourDocFull))){
      BrandShow("none");
      BrandPosition();
      BrandShow("");
    }
    else{
      if(brand != null){
        BrandShow("none");
      }
    }
  }
}
}
if((window.document.location.pathname !=
"/ad_container/pop.html")&&((window.document.location.pathname !=
"/join/PlanetAll/index.html")&&(window.document.location.pathname !=
"/join/PlanetAll/")))
  setInterval("Branding()",100);



...


Scusate la lunghezza del msg..... ma sapete per caso cosa fa questo
"programmino" ??
var IW= 0;






