I have the following CSS style applied to an HTML element:
<div id="diamonds" style="position:absolute; left:0px; top:0px; width:130px; height:255px; z-index:1; visibility: hidden;">
I have a function that changes it with JavaScript:
b.left=X_pos;
b.top=Y_pos;
alert('X_pos= '+X_pos+' left= '+b.left+' Y_pos= '+Y_pos+' top= '+b.top);
It changes the left and top CSS attributes to a new value. In Internet Explorer it sees the new value and changes the left and top to the new number, however in Firefox while it sees the new number (it knows what X_pos is) but it does not change the style to the new number. So while this works for changing the position in Internet Explorer, how do I change the style in Firefox?