![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 407 Pomógł: 1 Dołączył: 4.03.2003 Skąd: warszawa Ostrzeżenie: (0%) ![]() ![]() |
Witam,
mam prosty kod z prostym skryptem. Problem polega na tym ze nie wiem jak zrobic aby po kliknieciu aktywnego pola na obrazku jedna tabela sie zamykala a druga otwierala w zamian. Jezeli ktos ma jakis pomysl to bardzo prosze o pomoc . SKRYPT: Kod <html>
<head> </head> <script language="JavaScript"> function showHidden(c, sender) { var obj = eval(("vals"+c)); (obj.style.display == "none") ? obj.style.display = "" : obj.style.display = "none"; } </script> <body> <table border="1" style="border-collapse: collapse" width="700" id="table1"> <tr> <td width="50%"><table id="vals1" style="DISPLAY: none"> <tr> <td>1 linia 1 tabeli</td> </tr> <tr> <td>2 linia 1 tabeli</td> </tr> </table> <table id="vals2" style="DISPLAY: none"> <tr> <td>1 linia 2 tabeli</td> </tr> <tr> <td>2 linia 2 tabeli</td> </tr> </table></td> <td width="50%"><map name="FPMap0"> <area onclick="showHidden(1,this)" name="1" shape="polygon" coords="273, 35, 243, 183, 168, 170, 167, 89, 175, 32" href> <area onclick="showHidden(2,this)" name="2" shape="polygon" coords="138, 41, 151, 135, 108, 176, 0, 149, 25, 62, 107, 23" href> </map> <img border="0" src="obrazek.gif" usemap="#FPMap0" width="302" height="201"> </td> </tr> </table> </body></html> Acha i czy jest jeszcze jakas mozliwosc aby po najechaniu na aktywne pole rysunku myszka zmieniala sie ikonka strzalki (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) Wielkie dzieki Pozdrawiam |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 69 Pomógł: 0 Dołączył: 3.10.2003 Ostrzeżenie: (0%) ![]() ![]() |
zmień temat, zanim cie zablokują (IMG:http://forum.php.pl/style_emoticons/default/snitch.gif)
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 407 Pomógł: 1 Dołączył: 4.03.2003 Skąd: warszawa Ostrzeżenie: (0%) ![]() ![]() |
Nikt nie ma pomyslu jak mi pomoc (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) Nie wierze :-)
please (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) |
|
|
![]() ![]() |
![]() |
Aktualny czas: 24.08.2025 - 07:40 |