фикс расположения картинок

This commit is contained in:
lopar 2018-03-09 18:03:58 +02:00
parent f1ca34d838
commit 4def00efff

View File

@ -353,7 +353,7 @@ $online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time
{
if (!$noSeason) $img = getSeason() . $img;
?>
<div style="position:absolute; left:<?= $left ?>px; top:<?= $top ?>px; z-index:90;">
<div style="position:absolute; left:<?= $left ?>px; top:<?= $top ?>px; z-index:90; cursor: pointer;">
<img src="i/city/sub/<?= $img ?>.png" alt="<?= $des ?>" title="<?= $des ?>" class="aFilter2"
id="<?= $id ?>"
onmouseover="this.src='i/city/sub/<?= $img ?>2.png'"
@ -367,8 +367,7 @@ $online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time
$daytime = date('H');
if ($daytime >= 6 && $daytime <= 21) $background = getSeason() . $img . '_day';
else $background = getSeason() . $img . '_night';
echo sprintf('<div style="position:relative; cursor: pointer; top:0; left:0;" id="ione"><img src="i/city/%s.jpg">', $background);
echo '<div style="position:relative; top:0; left:0;"></div>'; /*Нулевой элемент от которого отталкиваются картинки*/
echo sprintf('<div style="position:relative; display: inline-block;" id="ione"><img src="i/city/%s.jpg">', $background);
/**
* Исходные строки:
* echo "<table width=1><tr><td><div style=\"position:relative; cursor: pointer;\" id=\"ione\"><img src=\"i/city/", $fon, ".jpg\" alt=\"\" border=\"0\"/>";