problemi nascondere td con firefox

Discussion in 'Javascript' started by gpp.fiorentino@gmail.com, Jul 30, 2007.

  1. Guest

    Ho il seguente codice

    <table border="1" >
    <tr>
    <td colspan="2" >ggggggggggggggg</td>
    </tr>

    <tr>
    <td id="gg_over" > aaahhh</td>
    <td >hhhhhhhh</td>
    </tr>
    </table>

    poi utilizzo una funzione javascript x nascondere la cella con id
    gg_over

    var el=document.getElementById('gg_over');
    el.style.display="none";

    var el=document.getElementById('gg_over');

    el.style.display="inline";

    La prima volta tutto ok....................

    poi xo' è come se ignorasse il colspan della prima riga..il ris da
    ottenere dovrebbe essere il seguente

    ggggggggggggggggggggggggggggggg
    aaaahhhhh hhhhhhhhhhhhhh

    quando nascondo la cella:

    gggggggggggggggggg
    hhhhhhhhhhhhhhhhhh

    dopo la prima volta invece quando mostro nuiovamente la cella

    gggggggggggggggggggggggggg
    aaaaaaaahhhhh hhhhhhhhhhhhhhhhhh

    Spero abbiaste capito.........ad ogmni modo allego tuttale pag di
    prova

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

    <head>
    <script>


    function gg1(){
    var el=document.getElementById('gg_over');
    el.style.display="none";
    //el.style.display="block";
    //el.style.display="none";
    //el.style.visibility="hidden";

    }
    function gg2(){
    var el=document.getElementById('gg_over');
    //el.style.visibility="visible";
    el.style.display="inline";


    }

    </script>


    </head>

    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">


    <p><input type="button" value="Mostra menu'" name="b4"
    onclick="gg2()"></p>
    <p><input type="button" value="Nascondi menu'" name="B3"
    onclick="gg1()"></p>


    <table border="1" >
    <tr>
    <td >ggggggggggggggg</td>
    <td >ggggggggggggggg</td>
    </tr>

    <tr>
    <td id="gg_over" > aaahhh</td>
    <td >hhhhhhhh</td>
    </tr>
    </table>

    </body>
    </html>
    --------------------
     
    , Jul 30, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Liber
    Replies:
    4
    Views:
    4,820
    Tristan
    Sep 6, 2004
  2. Heavy

    problemi con POST

    Heavy, May 9, 2006, in forum: Python
    Replies:
    7
    Views:
    344
    Alex Martelli
    May 13, 2006
  3. Lionel B

    problemi con puntatori

    Lionel B, Mar 30, 2007, in forum: C++
    Replies:
    3
    Views:
    313
    Victor Bazarov
    Mar 30, 2007
  4. Replies:
    4
    Views:
    4,230
  5. Replies:
    1
    Views:
    205
Loading...

Share This Page