Hello
I need to move a div’s position upon a PC-event. Here is the googled example (https://stackoverflow.com/questions/6802956/how-to-position-a-div-in-a-specific-coordinates), of which I want to incorperate in PC:
function placeDiv(x_pos, y_pos) {
var d = document.getElementById('yourDivId');
d.style.position = "absolute";
d.style.left = x_pos+'px';
d.style.top = y_pos+'px';
}
I have tried with (below a PC-event):
var microXpos = this.perc;
var tmpJoner = microXpos.toString()+"px";
this.floater.style.left = tmpJoner;
- but it does not work. A bit cumbersome as the '.style.display = “none” ’ etc. works flawless. [CF [SOLVED] Load loading screen assets first amongst others]