Цитата: var bg=0;
$(".windowbg, .approvebg").each(function(){
var user=$(this).find('.poster > h4 a:nth-child(2)').first().text();
var nextuser=$(this).next().next().find('.poster > h4 a:nth-child(2)').first().text();
bg^=(user!=nextuser);
$(this).next().next().addClass("bg"+bg);
$(this).next().next().addClass((user==nextuser)?"sameposter":"diffposter")
});
Цитата: $('html > head').append($(""+"<style>"+" .bg1 { background: #f0f4f7 !important; }"+" .bg0 { background: #fdfdfd !important; }"+" .windowbg:target { background: #ffffe0 !important; }"+" .approvebg { background: #ffeaea !important; }"+" .sameposter .poster { display: none; }"+"</style>"));
Страница создана за 0.032 сек. Запросов: 14.