Hallo,
var myBody = document.getElementsByTagName("body")[0];
window.setInterval(createColorHandler(myBody.style, "backgroundColor", [255, 168, 136], [55, 10, 16]), 120);Was ich schreiben ist eher so etwas:
cycleColors({ element: document.body, property: 'backgroundColor', from: [255, 168, 136], to: [55, 10, 16], duration: 3000 });
Die Duration muss doch aber als Paramter ins setIntervall ?
Gruß
jobo