Browse Source

working on z index

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
b3ad433e48
  1. 5
      web/chunkymap.php

5
web/chunkymap.php

@ -541,12 +541,13 @@ function echo_chunkymap_table() {
$zoomed_head_h=$character_icon_h;//(int)((float)$character_icon_h*$scale+.5);
$rel_x -= (int)($zoomed_head_w/2);
$rel_z -= (int)($zoomed_head_h/2);
$img_style="position:absolute; z-index:999; ";
//$img_style="position:absolute; ";
$img_style=""
if (!$is_expired) {
if ($is_idle) {
$img_style.="opacity: 0.4; filter: alpha(opacity=40);"; //filter is for IE8 and below
}
echo_hold( "<div style=\"position:absolute; left:$rel_x; top:$rel_z; width: $zoomed_head_w; height: $zoomed_head_h; border: 1px solid white\"><img src=\"images/chunkymap_character-face.png\" style=\"$img_style\"/>$player_name</div>" );
echo_hold( "<div style=\"position:absolute; z-index:999; left:$rel_x; top:$rel_z; width: $zoomed_head_w; height: $zoomed_head_h; border: 1px solid white\"><img src=\"images/chunkymap_character-face.png\" style=\"$img_style\"/>$player_name</div>" );
}
//$position_offset_x+=$character_icon_w;
}

Loading…
Cancel
Save