Changing CSS properties via JavaScript
问题 I need a function to change the appearance of some elements in my HTML page "on the fly", but I am not able to do it. The problem is that I cannot use a command like document.write ('<style type="text/css">body {background-color: #cccccc;}</style>'); because I need to make the changes effective when the page is already loaded, using a link like <a onmouseclick="Clicker(1)" href="#">clic</a> and I cannot use a command like document.body.style.background = '#cccccc'; because I do not know if it