anchor.diff:  				  <div class='post'> 
     <h2><%=rs2.getString("title")%></h2> 
     <p><%=rs2.getString("content")%></p> 
  -   <%if(rs2.getString("uploadfilename").contains(".ppt")){
  -	%><img src="upload/img/<%=rs2.getString("uploadfilename").substring(0, rs2.getString("uploadfilename").indexOf("."))%>1.jpg"class="img-responsive" alt="Responsive image"><% 
  -  }if(rs2.getString("uploadfilename").contains(".jpg")){%>
  -  <img src="upload/<%=rs2.getString("uploadfilename")%>" class="img-responsive" alt="Responsive image"><% 
  -  }%>
  +   <% String src = rs2.getString("uploadfilename").substring(0, rs2.getString("uploadfilename").indexOf("."));
  +   	System.out.println(src);
  +    int a = rs2.getInt("slidelength");System.out.println(a);
  +    boolean swape = false;
  +  
  +    for(int i = 0;i<a;i++) {  %>
  +	<a class="fancybox-thumbs" data-fancybox-group="thumb<%=src%>"  title ="<%=rs2.getString("title")%>"
  +	href="upload/img/<%=rs2.getString("uploadfilename").substring(0, rs2.getString("uploadfilename").indexOf("."))+(i+1)%>.jpg"> <% }%>
  +	
  +	<!-- 게시물에 노출된 표지 -->
  +	<img src="upload/img/<%=rs2.getString("uploadfilename").substring(0, rs2.getString("uploadfilename").indexOf("."))%>1.jpg" > 
  +	</a>
  +
     <p>작성자 : <%=rs2.getString("usernameboard")%></p> 
     <p>작성시간 : <%=today%></p> 
     <p>첨부파일 : <%=rs2.getString("uploadfilename")%></p>
  
positive.code: <jsp:include page="header.jsp" flush="false"/>
  <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
   <style type="text/css"> 
   
  	 body {  padding-bottom: 40px; background-color: f5f5f5; } 
  
  
negative.code: 	} 
  	.form-signin .form-signin-heading { margin-bottom: 10px; } 
  	.form-signin input { font-size: 16px; height: auto; margin-bottom: 15px; padding: 7px 9px; } 
  	
  	
  	</style> 
  
  	
  	<%	
  	String id = (String)session.getAttribute("loginid"); //#로그인한#id를#체크#
  
  	if (id != null) { //#로그인상태#
  		// 데이터베이스 연결관련 변수 선언
  		Connection conn = null;
  