Код: Выделить всё
of_Stars=500; //Звёзд за количество просмотров
Код: Выделить всё
<script type="text/javascript">
of_Stars=500; //Звёзд за количество просмотров
var records=0;
var Select=$(".forumbg ul");
var Rang_TR=[];
Select.find("dd.views").each(function(){
L=parseFloat($(this).text());
if(!($(this).parent('ul').find('.row').length)){
Rang_TR[L]=true;
if(L>records){records=L;};
L=Math.round(L/of_Stars);
if(L){
var SS='',
s='<img src="http://forumimage.ru/uploads/20131210/138668688755606437.png" />'
for(i=0; i<L; i++){
SS+=s;
}
$(this).parent('dl').find('dt').append('<span class="cssStars">'+SS+'</span>');
$('.cssStars').css({'display':'block'});
}
};
});
</script>
Код: Выделить всё
<script type="text/javascript">
of_Stars=500; //Звёзд за количество просмотров
var records=0;
var Select=$(".forumbg ul");
var Rang_TR=[];
Select.find("dd.views").each(function(){
L=parseFloat($(this).text());
if(!($(this).parent('ul').find('.row').length)){
Rang_TR[L]=true;
if(L>records){records=L;};
L=Math.round(L/of_Stars);
if(L){
var SS='',
s='<img src="http://forumimage.ru/uploads/20131210/138668688755606437.png" style="width:16px; height:16px;"/>'
for(i=0; i<L; i++){
SS+=s;
}
$(this).parent('dl').append('<dd class="stars">'+SS+'</dd>');
$('.stars').css({
'float' : 'none',
'clear' : 'both',
'padding-left' : '45px'
});
}
};
});
</script>
overall_footer.html
перед </body>
.Код: Выделить всё
of_Stars=500; //Звёзд за количество просмотров