Hey,
I’ve got to bother yous with another question. This one does’nt make much sense to me.
Trying to style an elements top and left values with DOM. this works in Opera:
[CODE]document.getElementById(dragId).style=”left:”+posx+”px;top:”+posy+”px;”
This works in Firefox(I was told in another thread that this the way to go!?):
[CODE]document.getElementById(dragId).style.top = posy+”px;”;
document.getElementById(dragId).style.left = posx+”px;”;
and this does NOT work at all:
[CODE]document.getElementById(dragId).setAttribute(“top”,posy+”px;”);
document.getElementById(dragId).setAttribute(“left”,posx+”px;”)
How is the right way to do this??
Thanks
/Konfjuusd