Path: blob/main/tests (don't work)/image div test
15482 views
(function () { var elem = document.createElement('div'); var body = document.getElementsByTagName('body')[0]; body.appendChild(elem); elem.style.position = 'fixed'; elem.style.top = '0px'; elem.style.right = '0px'; elem.style.margin = '10px'; elem.style.paddingTop = '10px'; elem.style.width = '200px'; elem.style.height = '40px'; elem.style.zIndex = 10000; elem.style.opacity = 1; elem.style.color = 'white'; elem.style.backgroundColor = 'black'; elem.style.textAlign = 'center'; elem.style.cursor = 'pointer'; elem.id = 'elem'; elem.style.display = 'block'; function bg(){elem.style.backgroundImage="url(http://bgreco.net/rainbowbg.gif)";} bg(); }());