레이어 오버시 링크 텍스트로 마우스를 움직이면 레이어가 잠깐 사라졌다가 다시 나옵니다....
<div id="category_011" style="display:;cursor:hand;" onMouseover="show_category_01(2);" onMouseout="show_category_01(1);">
<a href="/shop/list.php?ca_id=a1"><img src="http://www.cafe79.net/normal/img/jjcity/top_category_02.jpg" alt="" border=0></a></div>
<div id="category_012" style="display:none;position:relative;top:-1px;left:0px" onMouseover="show_category_01(2);" onMouseout="show_category_01(1);">
<div id=category_01_list style="padding:7;line-height:160%;position:absolute; background-color:#ffffff; width:206px; background-color:#d0d7f1; z-index:200;">
<?
$msql = " select ca_id, ca_name from $g4[yc4_category_table] where Length(ca_id) = '4' and Left(ca_id, 2) = 'a1' order by ca_name asc ";
$mresult = sql_query($msql);
for ($i=0; $mrow=sql_fetch_array($mresult); $i++)
{
echo "<a href=\"$g4[shop_path]/list.php?ca_id=$mrow[ca_id]\">".$mrow[ca_name]."</a><br>";
}
?>
</div>
</div>
<a href="/shop/list.php?ca_id=a1"><img src="http://www.cafe79.net/normal/img/jjcity/top_category_02.jpg" alt="" border=0></a></div>
<div id="category_012" style="display:none;position:relative;top:-1px;left:0px" onMouseover="show_category_01(2);" onMouseout="show_category_01(1);">
<div id=category_01_list style="padding:7;line-height:160%;position:absolute; background-color:#ffffff; width:206px; background-color:#d0d7f1; z-index:200;">
<?
$msql = " select ca_id, ca_name from $g4[yc4_category_table] where Length(ca_id) = '4' and Left(ca_id, 2) = 'a1' order by ca_name asc ";
$mresult = sql_query($msql);
for ($i=0; $mrow=sql_fetch_array($mresult); $i++)
{
echo "<a href=\"$g4[shop_path]/list.php?ca_id=$mrow[ca_id]\">".$mrow[ca_name]."</a><br>";
}
?>
</div>
</div>
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 2개
onMouseover="show_category_01(2);" onMouseout="show_category_01(1); 이 들어있어서 한번 더 실행이 되는 것입니다.
category_011 안에
onMouseover="show_category_01(2);" onMouseout="show_category_01(1); 뺀
category_012 를 넣으면 되지 않을까요
<div id="category_011" style="display:;cursor:hand;" onMouseover="show_category_01(2);" onMouseout="show_category_01(1);">
<a href="/shop/list.php?ca_id=a1"><img src="http://www.cafe79.net/normal/img/jjcity/top_category_02.jpg" alt="" border=0></a>
<div id=category_01_list style="display:none;padding:7;line-height:160%;position:absolute; background-color:#ffffff; width:206px; background-color:#d0d7f1; z-index:200;">
<?
$msql = " select ca_id, ca_name from $g4[yc4_category_table] where Length(ca_id) = '4' and Left(ca_id, 2) = 'a1' order by ca_name asc ";
$mresult = sql_query($msql);
for ($i=0; $mrow=sql_fetch_array($mresult); $i++)
{
echo "<a href=\"$g4[shop_path]/list.php?ca_id=$mrow[ca_id]\">".$mrow[ca_name]."</a><br>";
}
?>
</div>
</div>