Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: problem z ujawnianiem obiektu
Forum PHP.pl > Forum > Po stronie przeglądarki > JavaScript
Szakal
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?
dr_bonzo
Przetestuj to pod opera -- ma lepszy debug Javascriptu nie IE.
Zajec
GetElementById != getElementById
Szakal
Cytat(Zajec @ 15.08.2006, 20:17 ) *
GetElementById != getElementById


Hehe THX... odrobina nieuwagi i roztrzepania...
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.