Tobias Müller: javascript in xhtml1.0 transitional

Beitrag lesen

Hallo michael,

function moveIt(x,y){
this.x=x;this.y=y
this.css.left=this.x
this.css.top=this.y
}

Mozilla braucht explizit die Maßeinheit im Standardmodus, wie es ja auch die CSS-Spezifikation vorschreibt.

function moveIt(x,y){
  this.x=x;this.y=y
  this.css.left=this.x + 'px';
  this.css.top=this.y + 'px';
}

das sollte wirken.

MfG, Mülli

--
Viva Colonia!