Информеры

.tb_main {border:none; margin:0; padding:0}
.tb_main td {border:none; margin:0; padding:2px}
.colors td {margin:0; padding:2px 12px 0 0; font-weight:bold}
.colors div {padding:3px; _padding:0 1px 0 0; float:left; margin-right:3px; border:none; cursor:pointer}
.colors div input {margin:0; padding:0; cursor:pointer}
.colors .selected {border:1px solid #000; padding:4px 4px 4px 4px; _padding:1px 2px 1px 1px; margin:-2px 3px 1px 0px}
#block_container {margin:10px 0}

.inf_header {width:100%; display:block; clear:none; float:none; padding:2px; text-align:center; font:normal 14px verdana; color:#FFF}
.news_h {margin:0; padding:0; border-width:1px; border-style:solid; border-collapse:collapse}
.news_h th {text-align:center; margin:0px; padding:2px}
.news_h th a, .news_h th a:hover, .news_h th a:active, .news_h th a:visited {color:#FFF; font:normal 13px sans-serif; text-decoration:underline; letter-spacing:0}
.news_h td {margin:0px; font:normal 13px verdana; text-decoration:underline; padding:4px; vertical-align:top; text-align:center}

.news_v {margin:0; padding:0; border-width:1px; border-style:solid; border-collapse:collapse}
.news_v th {text-align:center; margin:0px; padding:2px}
.news_v th a, .news_h th a:hover, .news_h th a:active, .news_h th a:visited {color:#FFF; font:normal 13px sans-serif; text-decoration:underline; letter-spacing:0}
.news_v td {margin:0; font:normal 13px verdana; text-decoration:underline; padding:5px 5px 1px 5px; vertical-align:top; text-align:left}
.news_v div {border-bottom-width:1px; height:100%; border-bottom-style:dotted; overflow:hidden; padding-bottom:6px;}
.news_v img {vertical-align:top; margin-right:7px; float:left}

Цвет фона Код цвета
Цвет рамки Код цвета
Цвет ссылок Код цвета
<!--

-->

Расположение блока: Горизонтальное

Вертикальное
Header block:
Ширина блока: px%
Количество новостей: С картинкой

Категории новостей:

Все категории

Новости

Украина

Мир

Спорт

Политика

Киев

Происшествия

Интервью

Популярное

Экономика

Блоги

Аналитика

Разное

Нравы

HTML-код информера:



Кодировка:
windows-1251
koi8-r
UTF-8

params = new Object;
params['col_back'] = '#FFFFFF';
params['col_border'] = '#000000';
params['col_links'] = '#000000';
params['position'] = 1;
params['width'] = 100;
params['scale'] = '%';
params['numnews'] = 5;
params['withpic'] = true;
//params['header'] = 'ЭХО КИЕВА';
params['newssite'] = 'https://echo.kiev.ua';
params['cats'] = new Array();
params['all'] = false;
params['enc'] = 3;
th = false;
function allcats(c)
{
chk = document.getElementById('chk_all');
if (c) chk.checked = !chk.checked;
params['all'] = chk.checked;
_cats = document.getElementById('ncats').getElementsByTagName('input');
for (j=0; j<_cats.length; j++) if (_cats[j]!=chk) _cats[j].disabled = chk.checked;
chparams();
}
function select_bg(inp)
{
work = true;
td = (inp.tagName=='DIV' ? inp.parentNode : inp.parentNode.parentNode);
div = (inp.tagName=='DIV' ? inp : inp.parentNode);
for (j=0; j<td.childNodes.length; j++) if (td.childNodes[j].tagName=='DIV') td.childNodes[j].className = '';
div.className = 'selected';
div.childNodes[0].checked = true;
for (j=0, tds=0; j<td.parentNode.childNodes.length; j++)
{if (td.parentNode.childNodes[j].tagName=='TD') tds++;
if (tds==2) {td.parentNode.childNodes[j].childNodes[0].value = div.style.background.toUpperCase(); break;}}
chparams();
}
function mark_cat(num)
{
chk = document.getElementById('ncat'+num);
if (chk.disabled) return;
chk.checked = !chk.checked;
chparams();
}
function chpos(pos)
{
document.getElementById('pos'+pos).checked = true;
if (pos==1)
{
document.getElementById('blockwidth').value = '100';
document.getElementById('scale').selectedIndex = 1;
}
else
{
document.getElementById('blockwidth').value = '240';
document.getElementById('scale').selectedIndex = 0;
}
chparams();
}
function chparams()
{
params['col_back'] = document.getElementById('col1').value;
params['col_border'] = document.getElementById('col2').value;
params['col_links'] = document.getElementById('col3').value;
params['position'] = document.getElementById('pos1').checked ? 1 : 2;
//params['header'] = document.getElementById('header').value;
params['width'] = parseInt(document.getElementById('blockwidth').value);
params['scale'] = document.getElementById('scale').value;
params['numnews'] = document.getElementById('numnews').value;
params['withpic'] = document.getElementById('withpic').checked;
enc = document.getElementsByName('encoding');
params['enc'] = enc[0].checked ? 1 : (enc[1].checked ? 2 : 3);
params['cats'] = new Array();
if (!params['all'])
{
_cats = document.getElementById('ncats').getElementsByTagName('input');
for (j=0; j<_cats.length; j++)
if (_cats[j].checked)
params['cats'][params['cats'].length] = parseInt(_cats[j].id.match(/^ncat([0-9]{1,9})$/)[1]);
}
lnk = params['newssite'] + '/index.php?getinformer' +
'&col_back=' + encodeURIComponent(params['col_back']) +
'&col_border=' + encodeURIComponent(params['col_border']) +
'&col_links=' + encodeURIComponent(params['col_links']) +
'&position=' + encodeURIComponent(params['position']) +
/*'&header=' + encodeURIComponent(params['header']) +*/
'&width=' + encodeURIComponent(params['width']) +
'&scale=' + encodeURIComponent(params['scale']) +
'&numnews=' + encodeURIComponent(params['numnews']) +
(params['withpic'] ? '&withpic' : '') +
'&enc=' + encodeURIComponent(params['enc']) +
'&cats=' + params['cats'].join('+');
txt = document.getElementById('htmlcode');
txt.value = "\r\n";
txt.value += "Download the news of the informer...\r\n";
txt.value += "\r\n";
txt.value += "";
clearTimeout(th);
th = setTimeout('load_news()', 1800);
}
function load_news()
{
scr = document.getElementById('news_loader');
if ((scr!==null) && scr.parentNode) scr.parentNode.removeChild(scr);
scr = document.createElement('script');
scr.id = 'news_loader';
scr.src = params['newssite'] + '/?getnews&num=' + parseInt(params['numnews']) + '&cats=' + params['cats'].join('+') + '&rand=' + Math.floor(Math.random() * 1000000);
document.body.appendChild(scr);
}
chparams();