funtion that generate a red div that rotate constantly and has position absolute using this syntax function cubologo(top, left, parent) { } so I can set the top and left position and its parent where it will be append
function cubologo(top, left, parent) { var div = document.createElement('div'); div.className = 'logo'; div.style.top = top + 'px'; div.style.left = left + 'px'; parent.appendChild(div); } cubologo(0, 0, document.body)