Старт переноса showinf_pers(); в класс (наконец!_)
This commit is contained in:
parent
c6729f4a7b
commit
73042e214e
@ -44,7 +44,7 @@ class User
|
||||
}
|
||||
|
||||
protected function showItem(array $item) {
|
||||
echo sprintf('<img src="/i/sh/%s" class="item-wrap-normal tooltip" title="<strong>%s</strong>">', $item['image'], $item['name']);
|
||||
echo sprintf('<img src="/i/sh/%s" class="item-wrap-normal tip"><span class="tiptext"><strong>%s</strong></span>', $item['image'], $item['name']);
|
||||
}
|
||||
|
||||
public function showUserInfo() {
|
||||
|
17
css/main.css
17
css/main.css
@ -299,3 +299,20 @@ span.error {
|
||||
font-weight: bold;
|
||||
color: #8F0000;
|
||||
}
|
||||
|
||||
img.tip+span.tiptext {
|
||||
display: none
|
||||
}
|
||||
img.tip:hover+span.tiptext {
|
||||
border: #c0c0c0 1px dotted;
|
||||
padding: 5px 20px 5px 5px;
|
||||
display: block;
|
||||
z-index: 100;
|
||||
background-color: #f0f0f0;
|
||||
left: 0px;
|
||||
margin: 10px;
|
||||
width: 250px;
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
text-decoration: none
|
||||
}
|
Loading…
Reference in New Issue
Block a user