Привет! Помогите пофиксить код.
Мне нужно сделать, чтоб при наведении на картинку в шапке или футере, у меня всплывало нужных размеров окошко с кликабельными баннерами.
http://hptest.1bb.ru/
Есть у меня вот такой код.
/* Tooltips
-------------------------------------------------------------*/
.tooltip {
border: none;
color: #000000;
text-decoration: none;
position: relative;}
.tooltip span {
margin-left: -999em;
position: absolute;}
.tooltip:hover span {
font-family:verdana;
position: absolute;
left: 60px;
top: -60px;
z-index: 99;
margin-left: 0;}
.tooltip:hover img {
left: 1em;
top: 2em;
z-index: 99;
margin-left: 0;}
.tip {
position: absolute;
background: url("http://s4.uploads.ru/gLG7k.png") !important;
color: #363636;
border: 2px solid #898989;
z-index: 1000;
width: 150px;
padding: 5px;
text-align: justify;
line-height: 10px;
font-family: verdana;
font-size: 10px;
}<div style="position: absolute; top:111px; margin-left: 39px; width:50px;">
<a class="tooltip"><img src=http://i.imgur.com/hafrotS.jpg>
<span class="custom text"> <div class=cont><center><a href="http://supernaturalbrothers.ru" target=_blank title="Самая Сверхъестественная ролевая игра"><img src="http://s7.uploads.ru/N1fW3.gif"></a></center>
</span></div> </a>
</div>И все в нем как надо, кроме того, что он работает только с текстом. Вставляешь баннер-ссылку и все слетает, т.е. всплывающий блок для ссылок не годится. Косяк виден слева в шапке.
Как сделать чтоб там баннеры нормально встали?
Отредактировано Иса (Вс, 6 Сен 2015 17:55:42)

можно и по клику.
спасибо!