<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2" /> <link rel="stylesheet" href="style.css" type="text/css" /> <meta name="Keywords" content="Podstolice, Niepubliczne, Gimnazjum, w, Podstolicach, o, uprawnieniach, szkoły, publicznej, gimnazjum, podstolice" /> <script type="text/javascript"> function pokaz1() { var pop = document.getElementById('popup1'); pop.style.top = 280+'px'; pop.style.left = 335+'px'; pop.style.display = 'block'; } function wyczysc() { var pop = document.getElementById('popup1'); pop.style.display='none'; } function pokaz2() { var pop = document.getElementById('popup1'); pop.style.top=580+'px'; pop.style.left=335+'px'; pop.style.display='block'; } function pokaz3() { var pop = document.getElementById('popup1'); pop.style.display = 'block'; } </script> </head> <body> <div id="TOP" onmouseover="wyczysc()"> <img src="images/header900x220.png" alt="naglowek" /> </div> <div id="MENU2" onmouseover="wyczysc()"> </div> <div id="MENU"> <img src="images/klasy180x60.png" alt="klasy" onmouseover="pokaz1()" class="a"/> <img src="images/planlekcji180x60.png" alt="plan_lekcji" onmouseover="pokaz3()" class="a"/> <img src="images/dlarodzicow180x60.png" alt="dla_rodzicow" onmouseover="pokaz2()" class="a"/> </div> <div id="TRESC"> <div id='popup1'> <img src="images/menu.png" width="200" height="180" border="0" usemap="#map" onmouseout="document.getElementById('popup1').style.display='none';"> <area shape="rect" coords="0,0,200,60" href="klasa1.php" /> <area shape="rect" coords="1,60,200,120" href="klasa2.php" /> <area shape="rect" coords="1,120,200,180" href="klasa3.php" /> </div> </div> <div id="STOPKA"> <img src="images/stopka900x40.png" alt="stopka" /> </div> </body> </html>
Jak widać pod divem "popup1" mam mapę obrazu, która domyślnie jest ukryta (display: block). Jest wyświetlane po wjechaniu na element menu o nazwie "klasy" (zmiana display na block). Nastepnie po zjechaniu z tej mapy ma zniknąć. Niestety, mam dziwny problem. Wszystko działa jak chcę, ale do czasu. Mapa wyświetla się normalnie, ale z nika w nieodpowiednim czasie. To tak jakby div o nazwie "popup1" wykrywał tylko 1/3 tej mapy, a reszta należała już do jakiegoś innego elementu. Proszę o pomoc.