Czemu stronka nie dziala pod FF?

0

Stronka z mojego podpisu: michalm.hostlix.com.

Ma ktos pomysl, jak zrobic zeby to dzialalo pod FF? Od razu sie przyznaje, ze nie do konca wiem o co chodzi w tym skrypcie - ale moze ktos by mi zasugerowal co moge zmienic zeby zadzialalo?

0

porażkowaty skrypt :|
tak mniej więcej możesz dodać na szybko:

function getLayer(id){
//cross-browser layer access by layer name
//only works for flat layer hierarchies
  if (document.getElementById){
    return document.getElementById(id);
  }
  if (document.layers) {
   if (document.layers[id]){
     return document.layers[id];
      }
    }
  if (document.all){
    if (document.all[id]){
      return document.all[id];
      }
    }
  return null;
  }


function point(x, y){
//returns a point
  this.x = 0;
  this.y = 0;
  if (x) this.x = x;
  if (y) this.y = y;
  return this;
  }



function getPos(layer){
//cross browser position returning
  result = new point();
  if (layer.offsetLeft){
    result.x = layer.offsetLeft;
	result.y = layer.offsetTop;
  } else
  if (document.layers){
    result.x = layer.left;
    result.y = layer.top;
    } else
  if (document.all){
    result.x = layer.style.posLeft;
    result.y = layer.style.posTop;
    }
  return result;
  }


function setPos(layer, pospoint){
// cross browser layer positioning
  layer.style.left = pospoint.x + 'px';
  layer.style.top = pospoint.y + 'px';
  if (document.layers){
    layer.left = pospoint.x;
    layer.top = pospoint.y;
    }
  if (document.all){
    layer.style.posLeft = pospoint.x;
    layer.style.posTop = pospoint.y;
    }
  }

ale proponowałbym przepisać całkiem ten skrypt

0

No jest juz lepiej, ale dalej nie dziala i nie wiem dlaczego :| Animacja tekstu jest, ale nic poza tym..

1 użytkowników online, w tym zalogowanych: 0, gości: 1