Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> problem z ujawnianiem obiektu
Szakal
post 15.08.2006, 18:41:46
Post #1





Grupa: Zarejestrowani
Postów: 86
Pomógł: 0
Dołączył: 27.05.2004
Skąd: Zielona Góra

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


witam... Mam tabelkę:

  1. <table cellpadding=0 cellspacing=0><tr><td><input type=text border=0></td><td><input type=button onclick="MakeAvisible('fNames')"></td></tr></table>
  2.  
  3.  
  4. <table id='fNames' cellspacing=1 cellpadding=0 width=300 border=0 style="visibility: hidden; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid; position: absolute;">
  5. <tr>
  6. <td id="td1" onMouseOver="msON(this.id)" onMouseOut="msOut(this.id)"><font face=System id="td1f">Times New Roman</font></td></tr>
  7. <tr>
  8. <td id="td2" onMouseOver="msON(this.id)" onMouseOut="msOut(this.id)"><font face=System id="td2f">Arial</font></td></tr>
  9. <tr>
  10. <td id="td3" onMouseOver="msON(this.id)" onMouseOut="msOut(this.id)"><font face=System id="td3f">Arial Black</font></td></tr>
  11. <tr>
  12. <td id="td4" onMouseOver="msON(this.id)" onMouseOut="msOut(this.id)"><font face=System id="td4f">Arial Narrow</font></td></tr>
  13. <tr>
  14. <td id="td5" onMouseOver="msON(this.id)" onMouseOut="msOut(this.id)"><font face=System id="td5f">Verdana</font></td></tr></table>


chciałbym uwidocznić tę tabelkę robię to tym sposobem:

  1. <script language="javascript">
  2. function MakeAvisible(OBid){
  3. document.GetElementById(OBid).style.visibility = "visible";
  4. }


wg mnie wszystko jest OK ale explorer wyświetla błąd: "Obiekt nie obsługuje tej właściwości lub metody" WHYYYY?questionmark.gif?


--------------------
Pozdrawiam
(o) Igor Dirbach
Go to the top of the page
+Quote Post
dr_bonzo
post 15.08.2006, 19:14:14
Post #2





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

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


Przetestuj to pod opera -- ma lepszy debug Javascriptu nie IE.


--------------------
Nie lubię jednorożców.
Go to the top of the page
+Quote Post
Zajec
post 15.08.2006, 20:17:14
Post #3





Grupa: Zarejestrowani
Postów: 1 086
Pomógł: 8
Dołączył: 10.12.2003

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


GetElementById != getElementById
Go to the top of the page
+Quote Post
Szakal
post 15.08.2006, 20:50:44
Post #4





Grupa: Zarejestrowani
Postów: 86
Pomógł: 0
Dołączył: 27.05.2004
Skąd: Zielona Góra

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


Cytat(Zajec @ 15.08.2006, 20:17 ) *
GetElementById != getElementById


Hehe THX... odrobina nieuwagi i roztrzepania...


--------------------
Pozdrawiam
(o) Igor Dirbach
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 Wersja Lo-Fi Aktualny czas: 9.07.2025 - 04:17