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