ajax({
type : "post",
url : home.path+"exit",
dataType : "json",
success : function(data)
{
var list = data.recomandList_Exit;
var str = "";
for (var i = 0; i < list.length; i++)
{
var left = 26 +i*174;
var item = list[i];
str += '<div class="exit-bottom-div">'
str += '<img src="'+data.imgUrl+item.poster +'"class="exit-bottom-poster" />'
+ '<input type="hidden" value="' + item.templateModel+ '" />'
+ '<input type="hidden" value="'+ item.id + '" />'
+ '<span class="exit-bottom-span" style="left:'+left+'px;">'+item.title+'</span> </div>'
}
$("exitBottom").innerHTML = str;
}
type : "post",
url : home.path+"exit",
dataType : "json",
success : function(data)
{
var list = data.recomandList_Exit;
var str = "";
for (var i = 0; i < list.length; i++)
{
var left = 26 +i*174;
var item = list[i];
str += '<div class="exit-bottom-div">'
str += '<img src="'+data.imgUrl+item.poster +'"class="exit-bottom-poster" />'
+ '<input type="hidden" value="' + item.templateModel+ '" />'
+ '<input type="hidden" value="'+ item.id + '" />'
+ '<span class="exit-bottom-span" style="left:'+left+'px;">'+item.title+'</span> </div>'
}
$("exitBottom").innerHTML = str;
}
});
<div class="exit-bottom" id="exitBottom">
<%-- <c:forEach var="rList" items="${recomandList_Exit}" varStatus="status" end="4">
<div class='exit-bottom-div'>
<input type='hidden' value='${rList.templateModel}'>
<input type='hidden' value='${rList.ID}'>
<input type="hidden" value="${rList.albumVerpic}">
<img class='exit-bottom-poster' src="${imgUrl}${rList.poster}"/>
<c:if test="${not empty rList.mark }">
<img id='mainMark-${status.index}' class='mark' src="${imgUrl}${rList.mark}"/>
</c:if>
<span class="exit-bottom-span">${rList.title}</span>
</div>
</c:forEach> --%>
</div>