Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Blok informacyjny, onmouseover
beeper
post
Post #1





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 20.01.2005

Ostrzeżenie: (0%)
-----


Potrzebuje zrobić cos takiego jak jest na niektorych stronach, ze po najechaniu na link myszka pojawia się blok a w nim np. reklama. Chciałbym zrobic cos w stylu pomocy, jesli sie najedzie na dany element to zeby pojawiał się blok i jakas ikonką i tekstem. Jak to zrobić? lub jak to sie nazywa to poszukam sobie w google;] dzieki
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
revyag
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 258
Pomógł: 16
Dołączył: 21.09.2004
Skąd: Kielce

Ostrzeżenie: (0%)
-----


overlib


--------------------
-------------

------
Go to the top of the page
+Quote Post
beeper
post
Post #3





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 20.01.2005

Ostrzeżenie: (0%)
-----


Dzieki, znalazlem cos innego, dla mnie wystarczy smile.gif

Kod
wmtt = null;

document.onmousemove = updateWMTT;

function updateWMTT(e) {
    x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
    y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
    if (wmtt != null) {
  wmtt.style.left = (x + 20) + "px";
  wmtt.style.top  = (y + 20) + "px";
    }
}

function showWMTT(id) {
    wmtt = document.getElementById(id);
    wmtt.style.display = "block"
}

function hideWMTT() {
    wmtt.style.display = "none";
}
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 03:24