The vTicker plugin expects that you have a <div>
with a <ul>
inside. What it will do is take all the <li>
s there and scroll them.
You are not creating your HTML correctly for the ticker to correctly render anything. You want to add a new <li>
for each element you want scrolled. You were close, but you should be doing it like this:
<div id="slider">
<ul class="row"></ul>
</div>
And then simply append the <li>
s to it:
$(function () {
$.getJSON("http://1.handy-post-402.appspot.com/show?callback=?", function (json) {
for (var i = 0; i < json.length; i++) {
var map = json[i].propertyMap;
var content = map.isi;
var user = map.No_HP;
var date = map.tanggal;
$('#example .row').append('<li>'+
content + '<br>' +
user + '<br/>' +
date +
'</li>');
}
$('#example').vTicker();
});
});