Closed lenamtl closed 8 years ago
Just add this to the script part.
$(function() {
$('#nt-example2-infos .infos-hour').text($('#nt-example2 li:first span').text());
$('#nt-example2-infos .infos-text').text($('#nt-example2 li:first').data('infos'));
});
From http://risq.github.io/jquery-advanced-news-ticker/ I'm using Example 2
The problem is the first news title appear once and content appear twice in the code. I'm using DB data to filled the news, so the first news title don't have the appropriate content.