Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > problemi nascondere td con firefox

Reply
Thread Tools

problemi nascondere td con firefox

 
 
gpp.fiorentino@gmail.com
Guest
Posts: n/a
 
      07-30-2007
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>
--------------------

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nascondere il SSID joshua Wireless Networking 1 06-01-2007 08:41 PM
problemi con puntatori Lionel B C++ 3 03-30-2007 04:01 PM
AJAX-DOM: problemi con select dinamiche in IE7 diaboliko80@gmail.com Javascript 1 01-16-2007 04:42 PM
problemi con POST Heavy Python 7 05-13-2006 06:07 PM
¿Se puede ejecutar scripts con C# al igual que podía con VBScript? Liber ASP .Net 4 09-06-2004 08:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57