jsp for문 예제
<% for (int i=1; i<6; i++) { %>
<img src='./land<%=i%>_off.gif' onmouseover='over(<%=i%>)' onmouseout='out(<%=i%>)' id='img<%=i%>'/>
<% } %>
<li
<%if(i % 4 == 0){%>class="last"<%}%>
<%if(i % 4 == 1){%>class="first"<%}%>
>
<img src='./land<%=i%>_off.gif' onmouseover='over(<%=i%>)' onmouseout='out(<%=i%>)' id='img<%=i%>'/>
<% } %>
<li
<%if(i % 4 == 0){%>class="last"<%}%>
<%if(i % 4 == 1){%>class="first"<%}%>
>
<c:forEach var="i" begin="1" end="6" step="1">
<img src='./land<%=i%>_off.gif' onmouseover='over(<%=i%>)' onmouseout='out(<%=i%>)' id='img<%=i%>'/>
</c:forEach>
<img src='./land<%=i%>_off.gif' onmouseover='over(<%=i%>)' onmouseout='out(<%=i%>)' id='img<%=i%>'/>
</c:forEach>
jsp for문 예제
Reviewed by jieun
on
오전 9:52
Rating:
댓글 없음: