- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
function block_select_from(block,type){
if(type=='all'){
document.getElementById('block_'+block+'_all').style.display='';
document.getElementById('block_'+block+'_blogs').style.display='none';
document.getElementById('block_'+block+'_articles').style.display='none';
}
else if(type=='blogs'){
document.getElementById('block_'+block+'_all').style.display='none';
document.getElementById('block_'+block+'_blogs').style.display='';
document.getElementById('block_'+block+'_articles').style.display='none';
}
else if(type=='articles'){
document.getElementById('block_'+block+'_all').style.display='none';
document.getElementById('block_'+block+'_blogs').style.display='none';
document.getElementById('block_'+block+'_articles').style.display='';
}
}
guest 14.09.2009 16:35 # 0
guest 14.09.2009 16:55 # +3
var types = ['all', 'blogs', 'articles'];
for(var i=0, t; t=types[i]; i++) {
document.getElementById('block_'+block+' _'+t).style.display = (t==type?'':'none');
}
}
guest 14.09.2009 16:55 # 0
cheef 15.09.2009 15:43 # 0
for (var key in types){
}
guest 16.09.2009 01:53 # 0
Smoke 16.09.2009 16:20 # −1
$(['all', 'blogs', 'articles']).each(function () {
$('#block_'+block+'_'+this).css('display ', (t==type ? 'block' : 'none'));
});
}
guest 14.09.2009 16:56 # 0
document.getElementById('block_'+block+' _blogs').style.display = (type=='blogs') ? '' : 'none';
document.getElementById('block_'+block+' _articles').style.display = (type=='articles') ? '' : 'none';
guest 14.09.2009 17:00 # 0
guest 14.09.2009 17:27 # 0
guest 14.09.2009 17:32 # 0