홈페이지 메인에 공지사항 최신글게시판 만들기도와주세요
본문
<?php
</html>
include_once("$g4[path]/common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<html>
<head>
<title>령강노인종합복지센터 홈페이지</title>
<link rel="shortcut icon" href="./images/heart.ico">
</head>
<body leftmargin="0" topmargin="0">
<table align="center" width="1024" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="8" height="40" background="./images/header.gif"></td>
</tr>
<tr>
<td height="84" width="232"><a href="index.html"><img src="./images/menu12.gif" border="0"></a></td>
<td width="132"><a href="index2.html"><img src="./images/menu2.gif" onmouseover="this.src='./images/menu2_over.gif'" onmouseout="this.src='./images/menu2.gif'" border="0"></a></td>
<td width="132"><a href="index3.html"><img src="./images/menu3.gif" onmouseover="this.src='./images/menu3_over.gif'" onmouseout="this.src='./images/menu3.gif'" border="0"></a></td>
<td width="132"><a href="index4.html"><img src="./images/menu4.gif" onmouseover="this.src='./images/menu4_over.gif'" onmouseout="this.src='./images/menu4.gif'" border="0"></a></td>
<td width="132"><a href="index5.html"><img src="./images/menu5.gif" onmouseover="this.src='./images/menu5_over.gif'" onmouseout="this.src='./images/menu5.gif'" border="0"></a></td>
<td width="132"><a href="index6.html"><img src="./images/menu6.gif" onmouseover="this.src='./images/menu6_over.gif'" onmouseout="this.src='./images/menu6.gif'" border="0"></a></td>
<td width="132"><a href="index7.html"><img src="./images/menu7.gif" onmouseover="this.src='./images/menu7_over.gif'" onmouseout="this.src='./images/menu7.gif'" border="0"></a></td>
</tr>
<tr>
<td colspan="8">
<table width="1024" height="764" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="latest("simple_blue","notice",5,20)" width="1024"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="8" height="102" background="./images/footer.gif"></td>
</tr>
</table>
</body>
</html>
현재만들고있는 홈페이지 index의 내용입니다. 1-5번줄은 뭔가 잘못되었는지
글자색으로 봐서 뭔가 잘못된것 같고요
다른건 저희 그누보드 파일 경로입니다.
뭐가 잘못된건가요 자세한 설명좀 부탁드립니다..
답변 2
뭐가 잘못됐다는지 잘 모르겠습니다만, 혹시 php구문이 코드 하일라이팅이 안되는게 문제라고 하시는거라면,
이전 글을 참조해봤을때 현재 작업하고 계시는 문서의 확장자(extension)가 .html인걸로 보입니다.
에디트플러스에서는 .html일 경우 <? ?> 내부에 있는 php구문은 주석으로 간주하고, html 구문에 대해서만 하일라이팅을 합니다. 따라서 에디트플러스에서 보이는 글자색이 문제라고 하시면 현재로써는 문제없다. 라고 말씀드릴 수 있습니다.
<td background="latest("simple_blue","notice",5,20)" width="1024"></td>
이렇게 적혀있는데 게시판에서 짤린건지 잘 모르겟네요...
<td background="..."><?=latest("simple_blue","notice",5,20) ?> width="1024"></td>
가 되어야 합니다
!-->