1 {% load thumbnails %}{% load i18n %}
3 <div class="newsRoll center wrapper navigation cf">
4 <ul id="ticker" class="custom bigNews leftPart" style="height:360px;overflow:hidden;">
5 {% for content in news %}
7 id="newsRollId-{{ content.slug }}"
10 style="max-width:100%;height:360px;background: no-repeat 50% 50% url('{{ content.image|thumbnail:'800x600' }}');"
11 class="block news relative"
12 href="{% url 'newsitem-view' slug=content.slug %}">
13 {% if content.category %}
14 <div class="label labels absolute">
15 <span class="item inBlock">{{ content.category.title }}</span>
19 <div class="title"><div>{{ content.title }}</div></div>
24 <ul class="custom inline rightPart" id="roller">
25 {% for content in news %}
26 <li class="num-{{ forloop.counter }}">
27 <button class="inBlock" data-about="#newsRollId-{{ content.slug }}">
28 <img src="{{ content.image|thumbnail:'80x60' }}" />
37 $('#ticker li:not(:first)');
40 $('#ticker li:first').animate({'opacity':0}, 200, function () {
41 $(this).appendTo($('#ticker')).css('opacity', 1);
44 $("#roller button").on('click',function(e){
45 clearInterval(ticker_interval);
47 $($(this).attr('data-about')).prependTo('#ticker');
50 ticker_interval = setInterval(function(){tick(); }, 5000);/**/