I am able to set the position using object.style.left=x with javascript, used on a window resize event, if it is displayed, but this will not work if the element is display:none. I have an onmouseover event triggering the display:block. Is there any way to do this or is this impossible?

I am able to set the position of a display:none element using an external css. Just not javascript.