My problem is: (only as example, must not make sense overall):
// make a function and pass part of the statement as argument
function ExampleFunction( argument ) {
document.getElementById('TestID')[0].style.argument = '#f00';
}
// then later onload
ExampleFunction( background );
I found out that it doesn't work this way, but I can't find out how it would be right. If someone could correct the example to send me on my way I would be very happy and thankful.