시작페이지로 즐겨찾기추가
로그인
회원가입 l 출석체크 l 마이페이지 l CGIMALL
자료실 사이트등록 랭킹100 프로그램리뷰 관리자추천자료 초보가이드
커뮤니티
전체 펼쳐보기
퀵메뉴링크 jquery , CSS , PHP , Javascript , 무료폰트 , ASP
상세검색
> 커뮤니티 > 질문과답변 상세보기
커뮤니티 구인구직
사이트등록
클라우드태그
Javascript
php
CSS
html
asp
API
jquery
mysql
image
Mobile
slide
게시판
메뉴
현재접속자 45 새로고침
게시판타이틀 질문과답변 / 상세보기
트위터로 보내기
추천수 353 | 조회수 4,754 | 등록일 2011-06-28 19:12:37

닉네임

nom8009

이메일

nom8009@naver.com

제목

소스좀 봐주세요 완전 초보입니다 힘들게 구성하구있는데 마우스 오버 위치가 틀려지네여
내용


</MAP>

<MAP NAME="cate_m_01">
<AREA  onfocus="blur()" COORDS="192,5,275,83" HREF="/front/php/category.php?cate_no=26">
<AREA  onfocus="blur()" COORDS="280,3,362,81" HREF="/front/php/category.php?cate_no=24">
<AREA  onfocus="blur()" COORDS="369,4,451,82" HREF="/front/php/category.php?cate_no=25">
<AREA  onfocus="blur()" COORDS="458,4,542,84" HREF="/front/php/category.php?cate_no=6">
<AREA  onfocus="blur()" COORDS="546,4,630,82" HREF="#">
<AREA  onfocus="blur()" COORDS="634,4,718,83" HREF="#">
<AREA  onfocus="blur()" COORDS="724,4,806,82" HREF="#">
<AREA  onfocus="blur()" COORDS="813,4,895,83" HREF="#">
<AREA  onfocus="blur()" COORDS="191,86,274,166" HREF="#">
<AREA  onfocus="blur()" COORDS="280,86,363,166" HREF="#">
<AREA  onfocus="blur()" COORDS="368,86,451,165" HREF="#">
<AREA  onfocus="blur()" COORDS="456,87,540,166" HREF="#">
<AREA  onfocus="blur()" COORDS="546,86,629,166" HREF="#">
<AREA  onfocus="blur()" COORDS="634,86,718,164" HREF="#">
<AREA  onfocus="blur()" COORDS="723,87,807,166" HREF="#">
<AREA  onfocus="blur()" COORDS="812,87,895,170" HREF="#">

</MAP>

<MAP NAME="cate_m_02">
<AREA  onfocus="blur()" COORDS="190,3,286,165" HREF="/front/php/category.php?cate_no=8">
<AREA  onfocus="blur()" COORDS="292,3,387,166" HREF="/front/php/category.php?cate_no=9">
<AREA  onfocus="blur()" COORDS="395,4,490,166" HREF="#">
<AREA  onfocus="blur()" COORDS="497,2,591,165" HREF="#">
<AREA  onfocus="blur()" COORDS="598,3,693,167" HREF="#">
<AREA  onfocus="blur()" COORDS="701,4,796,166" HREF="#">
<AREA  onfocus="blur()" COORDS="802,4,895,165" HREF="#">
</MAP>

<MAP NAME="cate_m_03">
<AREA  onfocus="blur()" COORDS="191,3,275,83" HREF="/front/php/category.php?cate_no=27">
<AREA  onfocus="blur()" COORDS="280,3,364,83" HREF="/front/php/category.php?cate_no=28">
<AREA  onfocus="blur()" COORDS="368,3,452,82" HREF="#">
<AREA  onfocus="blur()" COORDS="457,3,541,83" HREF="#">
<AREA  onfocus="blur()" COORDS="546,3,630,82" HREF="#">
<AREA  onfocus="blur()" COORDS="635,3,719,83" HREF="#">
<AREA  onfocus="blur()" COORDS="723,3,807,82" HREF="#">
<AREA  onfocus="blur()" COORDS="812,4,895,83" HREF="#">
<AREA  onfocus="blur()" COORDS="190,86,275,166" HREF="#">
<AREA  onfocus="blur()" COORDS="280,86,364,166" HREF="#">
<AREA  onfocus="blur()" COORDS="368,86,452,165" HREF="#">
<AREA  onfocus="blur()" COORDS="457,86,541,166" HREF="#">
<AREA  onfocus="blur()" COORDS="546,86,630,166" HREF="#">
<AREA  onfocus="blur()" COORDS="635,86,719,166" HREF="#">
<AREA  onfocus="blur()" COORDS="723,86,807,166" HREF="#">
<AREA  onfocus="blur()" COORDS="812,87,896,166" HREF="#">
</MAP>

 

<table border=0 cellpadding=0 cellspacing=0 width=900>
 <tr>
  <td>
    <div id="bb" style="position:absolute; width:233px; height:104px; z-index:1; overflow: visible; left: 12px; top: 15px;">
   <table border=0 cellpadding=0 cellspacing=0>
    <tr><td height=9></td></tr>
    <tr>
     <td width=11></td>
     <Td>
      <ul id="tablist" style="display:;">
       <table border=0 cellpadding=0 cellspacing=0>
        <tr>
         <td>
      <a href="#" onClick="return expandcontent('sc1', this);DisplayMenu(1)" onfocus="blur()"><img src="http://oktem.cafe24.com/web/upload/cate_m_01.gif" border=0 onmouseover="mm_over(this)" onmouseout="mm_out(this)"></a></td>
      <td>
      <a href="#" onClick="return expandcontent('sc2', this);DisplayMenu(2)" onfocus="blur()"><img src="http://oktem.cafe24.com/web/upload/cate_m_02.gif" border=0 onmouseover="mm_over(this)" onmouseout="mm_out(this)"></a></td>
      <td>
      <a href="#" onClick="return expandcontent('sc3', this);DisplayMenu(3)" onfocus="blur()"><img src="http://oktem.cafe24.com/web/upload/cate_m_03.gif" border=0 onmouseover="mm_over(this)" onmouseout="mm_out(this)"></a></td>
      <td>&nbsp;</td>
      
                              </tr>
      </table>
      </ul>
     </td>
    </tr>
   </table>
       <a href="#" onclick="return expandcontent('sc4', this);DisplayMenu(3)" onfocus="blur()"><img src="http://oktem.cafe24.com/web/upload/cate_m_04.gif" width="168" height="23" border=0 onmouseover="mm_over(this)" onmouseout="mm_out(this)" /></a></div>
   <DIV id="tabcontentcontainer">
     <div id="sc1" class="tabcontent"><img src="http://oktem.cafe24.com/web/upload/cate_img_01.jpg" border=0 usemap="#cate_m_01"></div>
    <div id="sc2" class="tabcontent"><img src="http://oktem.cafe24.com/web/upload/cate_img_02.jpg" border=0 usemap="#cate_m_02"></div>
    <div id="sc3" class="tabcontent"><img src="http://oktem.cafe24.com/web/upload/cate_img_03.jpg" border=0 usemap="#cate_m_03"></div>
                                                       <div id="sc4" class="tabcontent"><img src="http://oktem.cafe24.com/web/upload/cate_img_04.jpg" border=0 usemap="#cate_m_02Map">
                                                         <map name="cate_m_02Map" id="cate_m_02Map"><area  onfocus="blur()" coords="814,4,897,166" href="#" /><area  onfocus="blur()" coords="724,4,806,167" href="#" /><area  onfocus="blur()" coords="633,4,714,166" href="#" /><area  onfocus="blur()" coords="543,5,626,167" href="#" /><area  onfocus="blur()" coords="453,4,534,167" href="#" /><area  onfocus="blur()" coords="363,5,445,166" href="#" /><area  onfocus="blur()" coords="272,4,354,167" href="#" />
                                                           <area  onfocus="blur()" coords="182,4,264,166" href="#" />
                                                         </map>
                                                       </div>
    </DIV>   
   </td>
  </tr>
 <tr><td height=5></td></tr>
</table>

<script language=javascript>
            function mm_over(obj)
            {
             var img = obj.src.split('.gif');
             obj.src = img[0] + '_on.gif';
            }
            function mm_out(obj)
            {
             var img = obj.src.split('_on.gif');
             obj.src = img[0] + '.gif';
            }
            </script>
<style type="text/css">


#tablist{
padding: 0px 0;
margin-left: 0;
margin-bottom: 0;
margin-top: 0.1em;
font: bold 12px Verdana;
}

#tablist li{
list-style: none;
display: inline;
margin: 0;
}

#tablist li a{
padding: 0px 0.5em;
margin-left: 3px;
border: 1px solid #778;
border-bottom: none;
background: white;
}

#tablist li a:link, #tablist li a:visited{
color: navy;
}

#tablist li a.current{
background: lightyellow;
}

#tabcontentcontainer{
width: 900px;
/* 내용이 보여질 곳의 너비를 지정합니다 */
padding: 0px;
border: 0px solid E1E1E1;
}

.tabcontent{
display:none;
}


</style>

<script type="text/javascript">

// 페이지 로딩시 선택될 탭을 지정합니다
var initialtab=[1, "sc1"]

function cascadedstyle(el, cssproperty, csspropertyNS){
if (el.currentStyle)
return el.currentStyle[cssproperty]
else if (window.getComputedStyle){
var elstyle=window.getComputedStyle(el, "")
return elstyle.getPropertyValue(csspropertyNS)
}
}

var previoustab=""

function expandcontent(cid, aobject){
if (document.getElementById){
highlighttab(aobject)
detectSourceindex(aobject)
if (previoustab!="")
document.getElementById(previoustab).style.display="none"
document.getElementById(cid).style.display="block"
previoustab=cid
if (aobject.blur)
aobject.blur()
return false
}
else
return true
}

function highlighttab(aobject){
if (typeof tabobjlinks=="undefined")
collecttablinks()
for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].style.backgroundColor=initTabcolor
var themecolor=aobject.getAttribute("theme")? aobject.getAttribute("theme") : initTabpostcolor
aobject.style.backgroundColor=document.getElementById("tabcontentcontainer").style.backgroundColor=themecolor
}

function collecttablinks(){
var tabobj=document.getElementById("tablist")
tabobjlinks=tabobj.getElementsByTagName("A")
}

function detectSourceindex(aobject){
for (i=0; i<tabobjlinks.length; i++){
if (aobject==tabobjlinks[i]){
tabsourceindex=i
break
}
}
}

function do_onload(){
var cookiename=(typeof persisttype!="undefined" && persisttype=="sitewide")? "tabcontent" : window.location.pathname
var cookiecheck=window.get_cookie && get_cookie(cookiename).indexOf("|")!=-1
collecttablinks()
initTabcolor=cascadedstyle(tabobjlinks[1], "backgroundColor", "background-color")
initTabpostcolor=cascadedstyle(tabobjlinks[0], "backgroundColor", "background-color")
if (typeof enablepersistence!="undefined" && enablepersistence && cookiecheck){
var cookieparse=get_cookie(cookiename).split("|")
var whichtab=cookieparse[0]
var tabcontentid=cookieparse[1]
expandcontent(tabcontentid, tabobjlinks[whichtab])
}
else
expandcontent(initialtab[1], tabobjlinks[initialtab[0]-1])
}

if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload


</script>

<!------- 현재의 탭을 기억시키고싶으면 아래의 코드를 넣어 주세요 -------->
<script type="text/javascript">

var enablepersistence=true //기억설정 (true/false)
var persisttype="sitewide" // 사이트전체기억시 sitewide" 이 페이지만 기억시 "local"

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function savetabstate(){
var cookiename=(persisttype=="sitewide")? "tabcontent" : window.location.pathname
var cookievalue=(persisttype=="sitewide")? tabsourceindex+"|"+previoustab+";path=/" : tabsourceindex+"|"+previoustab
document.cookie=cookiename+"="+cookievalue
}

window.onunload=savetabstate

</script>
            <body>
</body>

추천스크랩소스보기 목록
코딩쟁이 2011-07-01 13:45:21
답글

mm_over(this) 가 속한 이미지에서 TD사이즈가 명확하지 않고 이미지 사이즈가 마우스오버 상태랑 아웃 상태랑 맞지 않아서 발생한 듯합니다.

코딩쟁이 2011-07-01 13:49:43
답글

실제로 해당 이미지를 둘러싼 TABLE 에 board=1 값을 줘서 마우스를 over, out시켜보면 눈에 보이실 겁니다.

이전게시글 gm에디터에 사진이 안올라가네요 왜그런지좀 가르쳐주세요 2011-06-26 01:58:06
다음게시글 [PHP] 옷,악세사리, 등 선택 후 장바구니에 담기.. 2011-07-05 16:00:15