head 와 foot 를 나누는데 자꾸만 애러가 생겨 미치겠어요^^
| (참조사이트를 따라 연습하는중) 연속 며칠간 머리를 앓고 있어요~~ 고수님들 디자인을 무시해주시고 좀 봐주셨으면 고맙겠습니다. head.php 와 tail.php를 수술했거든요.. http://boai.cafe24.com/shop/item.php?it_id=1185379803 <=화면에 오류가 나타납니다 head.php 화일 링크주소: http://boai.cafe24.com/head.zip tail.php 화일 링크주소: http://boai.cafe24.com/tail.zip <? include_once("./_common.php"); include_once("$g4[path]/lib/latest.lib.php"); define("_INDEX_", TRUE); $g4[title] = ""; include_once("$g4[path]/head.php"); ?><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=euc-kr"> <title>무제 문서</title> </head> <body> <table width="908" height="370" border="0" align="center" cellpadding="0" cellspacing="0"> <tr align="left"> <td height="54" colspan="4" valign="top"><table width="908" height="54" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="226" height="54"><a href="http://boai.cafe24.com"><img src="http://boai.cafe24.com/images/head_11_11.jpg" alt="" width="226" height="54" border="0"></a></td> <td width="265"><a href="http://boai.cafe24.com/men.php"><img src="http://boai.cafe24.com/images/head_11_12.jpg" alt="" width="265" height="54" border="0"></a></td> <td width="220"><a href="http://boai.cafe24.com/women.php"><img src="http://boai.cafe24.com/images/head_11_13.jpg" alt="" width="220" height="54" border="0"></a></td> <td width="197"><a href="http://boai.cafe24.com/board.php"><img src="http://boai.cafe24.com/images/head_11_14.jpg" alt="" width="197" height="54" border="0"></a></td> </tr> </table></td> </tr> <tr> <td width="285" height="178" align="center" valign="top"><table width=284 height="171" align="center" cellpadding=5 cellspacing=0 bgcolor=#ffffff> <form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off"> <input type="hidden" name="url" value="/index.php"> <tr> <td width="272" height="169"> <table width=47% bgcolor=#FFFFFF cellpadding=3 cellspacing=0 border=0 height=97> <tr><td colspan=2 height=5></td></tr> <tr> <td> <table width=100% bgcolor=#FFFFFF cellpadding=0 cellspacing=0 border=0> <tr> <td valign="bottom"><img src='http://boai.cafe24.com/images/id.gif'></td> <td><input class=ed name="mb_id" type="text" size="14" maxlength="20" value='아이디' onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);'></td> </tr> <tr> <td valign="bottom"><img src='http://boai.cafe24.com/images/pw.gif'></td> <td id=pw1><input class=ed type="text" size="14" maxlength="20" value='패스워드' onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);'> <td id=pw2 style='display:none;'><input class=ed name="mb_password" type="password" size="14" maxlength="20" onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);'></td> </tr> </table></td> <td align="left"><input type=image src='./skin/outlogin/shop_outlogin/img/btn_login.gif' border=0></td> </tr> <tr> <td colspan=0 align=center><input type="checkbox" name="auto_login" value="1" onClick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?')) { this.checked = true; } else { this.checked = false; } }"> 자동로그인</td> </tr> <tr> <td colspan=2 align=left> <a href="javascript:win_password_forget();"><img src='./skin/outlogin/shop_outlogin/img/btn_find.gif' border=0></a> <a href="./bbs/register.php"><img src='./skin/outlogin/shop_outlogin/img/btn_join.gif' border=0></a> </td> </tr> </table> </td> </tr> </form> </table></td> <td width="686" colspan="3" align="left" valign="top"><img src="http://boai.cafe24.com/images/main_ban.jpg" width="686" height="178" border='0'></td> </tr> <tr> <td></td> <td width="686" colspan="3" rowspan="5" align="left" valign="top"> </td> </tr> <tr> <td></td> </tr> <tr> <td height="15"></td> </tr> <tr> <td height="15"></td> </tr> <tr> <td height="15"></td> </tr> <tr align="left" valign="top"> <td colspan="4"><table width="908" height="47" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="118"><img src="http://boai.cafe24.com/images/tail_01.gif"></td> <td width="121"><a href='http://boai.cafe24.com/shop/content.php?co_id=company'><img src="http://boai.cafe24.com/images/tail_02.gif" width="121" height="35" border='0'></a></td> <td width="108"><a href='http://boai.cafe24.com/shop/content.php?co_id=provision'><img src="http://boai.cafe24.com/images/tail_03.gif" width="108" height="35" border='0'></a></td> <td width="148"><a href='http://boai.cafe24.com/shop/content.php?co_id=privacy'><img src="http://boai.cafe24.com/images/tail_04.gif" width="148" height="35" border='0'></a></td> <td width="108"><a href='http://boai.cafe24.com/shop/content.php?co_id=copyright'><img src="http://boai.cafe24.com/images/tail_05.gif" width="108" height="35" border='0'></a></td> <td width="98"><a href='http://boai.cafe24.com/shop/content.php?co_id=join'><img src="http://boai.cafe24.com/images/tail_06.gif" width="98" height="35" border='0'></a></td> <td width="207"><img src="http://boai.cafe24.com/images/tail_07.gif"></td> </tr> <tr> <td colspan="7"><img src="http://boai.cafe24.com/images/tail_09.gif"></td> </tr> </table></td> </tr> </table> </body> </html> 1.왜서 스크립트오류가 생기지요? 2.왜서 태이블이 자꾸 깨져요? 많은 가르침 부탁드려요ㅠㅠ |
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 4개
<tr>
<td></td>
<td width="686" colspan="3" rowspan="5" align="left" valign="top"> 이부분... <td> 가 두개인데 왜? 아래는 <td>하나일까요?
하나로 할려면 <td colspan=2> 해야겠지요? 그리고 위에 두개중 한개는 <td colspan=3인데 그럼 아래는 총 4개의 colspan이 있어야하지 않을까요? <td colspan=4> td의 수가 다른데 당연히 안맞을수 밖에 없지 않을까요?
전체적으로 <tr>과 </tr>사이의 <td>가 3개라면 그 아래의 <tr></tr>사이의 <td>또한 3개가 있어야 하며 하나로 만들고자 한다면 colspan=3을 해줘야 하지 않겠습니까? 위에는 3개이고 아래는 한개면 나머지 두개의 td 여백만큼 아래쪽은 안보일수 밖에 없겠지요...
<form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off">
여기에 스크립트를 이용했습니다...
그런데 저 스크립트 어디에 작성되 있나요? 스크립트 없는데 사용만 할려고 하면 당연히 에러가 나겠지요?
소스 다시 정리하셔서 td colspan 정확하게 해보세요 그래야 테이블이 안깨집니다......
도움이 많이 되구 있어요...^^
그런데 <form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off">을 삭제해봐도 여전히 스크립트오류가 나네요?