hi,
onclick="addStyle('body { color: red; background-color: yellow; }');
Wenn das alles ist, was du erreichen willst - das kannst du auch über die zwei Anweisungen
document.body.style.color = 'red';
document.body.style.backgroundColor = 'yellow';
erreichen.
Oder auch, in dem du dem body einfach eine andere Klasse zuweist, für die schon die entsprechenden Formatierungen im CSS hinterlegt sind.
gruß,
wahsaga
--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }