body.defualt{ background-color:blue; } body.spring { background-color : pink; background-image : url(..); ........ } ...
<body name="home" class="default"> ... <input type=button value="change" önclick="change(spring)"/>
function change(theme) { document.getElementsByName("home").style.class = theme; }
function change(theme) { document.body.className = theme; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)