blob: 40041dfe456a2e6fd13862cc33c42cc776b2be5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
window.addEvent('domready', function() {
var r = new MooRainbow('myRainbow', {
'startColor': [58, 142, 246],
'imgPath': 'js/mooRainbow/images/',
'onChange': function(color) {
top.frame_navigation.document.getElementById('body_leftFrame').style.backgroundColor = color.hex;
top.frame_navigation.document.getElementById('pmalogo').style.backgroundColor = color.hex;
top.frame_content.document.body.style.backgroundColor = color.hex;
},
'onComplete': function(color) {
top.frame_content.document.getElementById('rainbowform').custom_color.value = color.hex;
top.frame_content.document.getElementById('rainbowform').custom_color_rgb.value = color.rgb;
top.frame_content.document.getElementById('rainbowform').submit();
}
});
});
|