이미지 맵에 링크를 걸었습니다.
일반적인 링크는 지장이 없는데 로그인 부분에서 기존 방식 그대로 사용을 하니 먹히질 않습니다.
이부분을 어떻게 해야 할지 도움을 청합니다.
자바 스크립트로 해야 하나요?
<map name="top_right">
<? if ($is_member) { ?>
<area shape="rect" coords="20,8,53,17" href='<?=$g4[bbs_path]?>/logout.php' alt="login">
<area shape="rect" coords="82,8,119,17" href='<?=$g4[bbs_path]?>/member_confirm.php?url=register_form.php' alt="joinus">
<? } else { ?>
<area shape="rect" coords="20,8,53,17" href='<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>' alt="login">
<area shape="rect" coords="82,8,119,17" href='<?=$g4[bbs_path]?>/register.php' alt="joinus">
<? } ?>
<area shape="rect" coords="143,8,171,17" href="#" alt="cart">
<area shape="rect" coords="193,8,228,17" href="#" alt="order">
<area shape="rect" coords="250,8,285,17" href="#" alt="guide">
</map>
<? if ($is_member) { ?>
<area shape="rect" coords="20,8,53,17" href='<?=$g4[bbs_path]?>/logout.php' alt="login">
<area shape="rect" coords="82,8,119,17" href='<?=$g4[bbs_path]?>/member_confirm.php?url=register_form.php' alt="joinus">
<? } else { ?>
<area shape="rect" coords="20,8,53,17" href='<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>' alt="login">
<area shape="rect" coords="82,8,119,17" href='<?=$g4[bbs_path]?>/register.php' alt="joinus">
<? } ?>
<area shape="rect" coords="143,8,171,17" href="#" alt="cart">
<area shape="rect" coords="193,8,228,17" href="#" alt="order">
<area shape="rect" coords="250,8,285,17" href="#" alt="guide">
</map>
댓글을 작성하시려면 로그인이 필요합니다.
댓글 1개
<? if ($is_member) { ?>
<area shape="rect" coords="20,8,53,17" href='<?=$g4[bbs_path]?>/logout.php' alt="login">
<area shape="rect" coords="82,8,119,17" href='<?=$g4[bbs_path]?>/member_confirm.php?url=register_form.php' alt="joinus">
<area shape="rect" coords="143,8,171,17" href="#" alt="cart">
<area shape="rect" coords="193,8,228,17" href="#" alt="order">
<area shape="rect" coords="250,8,285,17" href="#" alt="guide">
<? } else { ?>
<area shape="rect" coords="20,8,53,17" href='<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>' alt="login">
<area shape="rect" coords="82,8,119,17" href='<?=$g4[bbs_path]?>/register.php' alt="joinus">
<area shape="rect" coords="143,8,171,17" href="#" alt="cart">
<area shape="rect" coords="193,8,228,17" href="#" alt="order">
<area shape="rect" coords="250,8,285,17" href="#" alt="guide">
<? } ?>
</map>
이렇게 전체를 두고 해보세요!
전혀 문제가 되지 않는데 이렇게 해보세요
</map>