+2  A: 
function contentStringHtml(data, name) {
    var list;
    $.each(data.DataTime, function(i, item) {
        list += '<li class="gm-trafic-li">' + item.TimeAndTo + '</li>';
    });
    return '<div id="gm-event-title"><h2>'+name+'</h2></div>' +
            '<div class="gm-trafic-index">' +
            '<ul>'+list+'</ul></div>';
}
David
Thanks it works :)
Frozzare