фикс расположения картинок
This commit is contained in:
parent
4def00efff
commit
0f6154cb7c
16
city.php
16
city.php
@ -318,6 +318,9 @@ $online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time
|
|||||||
<link rel=stylesheet href="css/main.css">
|
<link rel=stylesheet href="css/main.css">
|
||||||
<link rel="stylesheet" href="/locations/style.css"/>
|
<link rel="stylesheet" href="/locations/style.css"/>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
<style>
|
||||||
|
img.building:hover {filter:drop-shadow(2px 2px 2px white);}
|
||||||
|
</style>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function solo(n) {
|
function solo(n) {
|
||||||
top.changeroom = n;
|
top.changeroom = n;
|
||||||
@ -349,7 +352,7 @@ $online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time
|
|||||||
else return 'winter_';
|
else return 'winter_';
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildset($id, $img, $top, $left, $des, $noSeason = 0)
|
function buildset_old($id, $img, $top, $left, $des, $noSeason = 0)
|
||||||
{
|
{
|
||||||
if (!$noSeason) $img = getSeason() . $img;
|
if (!$noSeason) $img = getSeason() . $img;
|
||||||
?>
|
?>
|
||||||
@ -362,6 +365,17 @@ $online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function buildset($id, $img, $top, $left, $des, $noSeason = 0)
|
||||||
|
{
|
||||||
|
if (!$noSeason) $img = getSeason() . $img;
|
||||||
|
?>
|
||||||
|
<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="building"
|
||||||
|
id="<?= $id ?>" onclick="solo(<?= $id ?>)"/>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
function bgset($img)
|
function bgset($img)
|
||||||
{
|
{
|
||||||
$daytime = date('H');
|
$daytime = date('H');
|
||||||
|
Loading…
Reference in New Issue
Block a user