// Имя файла параметров по умолчанию /* //alert('Loading pre'); var base=document.location.search.substr(1); if (base != '') { // alert('base: '+base); pre_config_file.src = 'http://' + base + '/viewpage/def/-Pre-.def'; } else { // alert('local'); pre_config_file.src = '/viewpage/def/-Pre-.def'; } */ pre_config_file.src = '/viewpage/def/-Pre-.def'; function OnLoadPre() { // Имя пользовательского файла параметров //user_config_file.src = 'def/colorbars.def'; user_config_file.src = '/viewpage/def/oblsud_conf_arch.def'; // Имя файлов параметров (без расширения) можно указать и в URL // в формате "?..." или "?...#..." // Такое задание "перебивает" явное задание, указанное выше // Пример: // http://live.vidicor.ru?config=http://makstv.vidicor.ru/pre.def?makstv.vidicor.ru/config.def&makstv.vidicor.ru/chat#3 /* var base=document.location.search.substr(1); if (base != '') { // pre_config_file.src = 'http://' + base + '/def/-Pre-.def'; user_config_file.src = 'http://' + base + '/def/-config-.def'; chat_folder_base = base; // alert(pre_config_file.src + " | " + user_config_file.src) } else { user_config_file.src = 'def/-config-.def'; } */ } function doFillDocument() { //document.getElementById('idTitlePlaceholderH1').innerHTML = Title; document.getElementById('idControlScript').src = '/viewpage/Files/Control.js'; //alert('loaded config'); if((document.getElementById('idCounterScript') == undefined) || (document.getElementById('idCounterScript') == null)) { //alert('loading counter image'); document.getElementById('idCounterImage').src = 'http://get.mycounter.com.ua/counter.php?id=3303'; } else { //alert('loading counter script'); // alert(document.getElementById('idCounterScript').src); document.getElementById('idCounterScript').src = '/viewpage/Files/Counter.js'; // alert(document.getElementById('idCounterScript').src); // document.getElementById('idCounterScriptPlaceholderDiv').innerHTML = '111'; } } var bConfigLoaded = false; var bDocumentLoaded = false; function onLoadConfig() { bConfigLoaded = true; // alert('bConfigLoaded: !'+bDocumentLoaded+'!@'+bConfigLoaded+'@'); if(bDocumentLoaded) { doFillDocument(); } } function onLoadDocument() { bDocumentLoaded = true; // alert('bDocumentLoaded: !'+bDocumentLoaded+'!@'+bConfigLoaded+'@'); if(bConfigLoaded) { doFillDocument(); } }