фикс расположения картинок
This commit is contained in:
parent
f1ca34d838
commit
4def00efff
5
city.php
5
city.php
@ -353,7 +353,7 @@ $online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time
|
|||||||
{
|
{
|
||||||
if (!$noSeason) $img = getSeason() . $img;
|
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"
|
<img src="i/city/sub/<?= $img ?>.png" alt="<?= $des ?>" title="<?= $des ?>" class="aFilter2"
|
||||||
id="<?= $id ?>"
|
id="<?= $id ?>"
|
||||||
onmouseover="this.src='i/city/sub/<?= $img ?>2.png'"
|
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');
|
$daytime = date('H');
|
||||||
if ($daytime >= 6 && $daytime <= 21) $background = getSeason() . $img . '_day';
|
if ($daytime >= 6 && $daytime <= 21) $background = getSeason() . $img . '_day';
|
||||||
else $background = getSeason() . $img . '_night';
|
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 sprintf('<div style="position:relative; display: inline-block;" id="ione"><img src="i/city/%s.jpg">', $background);
|
||||||
echo '<div style="position:relative; top:0; left:0;"></div>'; /*Нулевой элемент от которого отталкиваются картинки*/
|
|
||||||
/**
|
/**
|
||||||
* Исходные строки:
|
* Исходные строки:
|
||||||
* echo "<table width=1><tr><td><div style=\"position:relative; cursor: pointer;\" id=\"ione\"><img src=\"i/city/", $fon, ".jpg\" alt=\"\" border=\"0\"/>";
|
* echo "<table width=1><tr><td><div style=\"position:relative; cursor: pointer;\" id=\"ione\"><img src=\"i/city/", $fon, ".jpg\" alt=\"\" border=\"0\"/>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user