добавим картинок…
This commit is contained in:
parent
20f1659984
commit
04f5b056f3
1
city.php
1
city.php
@ -368,6 +368,7 @@ $online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time
|
|||||||
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;" id="ione"><img src="i/city/%s.jpg">', $background);
|
echo sprintf('<div style="position:relative; cursor: pointer;" 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…
Reference in New Issue
Block a user