0
나는 중국 캐비닛의 이미지가 있습니다. 나는 모든 항목 이름으로 데이터베이스가배경색 변경 HTML 지역 좌표
<area id="vasetop" alt="" title="Vase on Top" href="#" onClick="reply_click(this)" shape="rect" coords="276,27,379,96" style="outline:none;" target="_self" />
하고, 그렇지 않은 경우 각각이 경우 사용 가능한 1 0의 값을 갖는다 :
나는 점을 음모하고하는 HREF를 만들 수있는 이미지 맵을 사용하여 유효한.
vasetop 1의 값이 어떻게 든 제거하려는 : 내가하고 싶은 무엇
말할 경우입니다.
내 코드에 가까운
$result = mysqli_query($con,"SELECT * FROM stuff where status='1'");
while($row = mysqli_fetch_array($result)) {
if ($row['items'] == "vasetop"){
<area show black box at these coords="276,27,379,96" />
}
else {
<area id="vasetop" alt="" title="Vase on Top" href="#" onClick="reply_click(this)" shape="rect" coords="276,27,379,96" style="outline:none;" target="_self" />
}
}
뭔가처럼 보일 것입니다.
어쨌든 html로 coords의 배경색을 설정할 수 있습니까?
내가 진정으로 원하는 것은 다음을 수행 할 수있는 코드입니다.
<div coords="276,27,379,96" style="background-color: #FFFFFF;">