/******************************************************************** ******* informers.js ********************************************************************/ initCommon(); var colorInformer = 'FF00FF'; var bgcolorInformer = 'FFFFFF'; function getInformerUrl() { var url = root+'informerget/?type='+type+'&city[]='+city_name_url+'&color='+colorInformer; var radio = $('forminformers').elements['langs']; langs = curlang; for(var i=0; i < radio.length; i++) { if(radio[i].checked) { var langs = radio[i].value; break; } } url = String(url).replace(/\/\w{2}\//g,'/'+langs+'/'); return url; } function selectColorHandler() { if(!Picker.stop) { if($('rcolorinf').checked) { colorInformer = $('mHEX').innerHTML; $('informer').src = getInformerUrl(); } } if($('rcolorbg').checked) { bgcolorInformer = $('mHEX').innerHTML; $('plugID').style.backgroundColor='#'+bgcolorInformer; } } function selectLanguageHandler() { $('informer').src = getInformerUrl(); }