...

View Full Version : revealing hidden content onClick



Partizan
02-27-2009, 03:51 PM
I have the following script that works fine in that it reveals hidden text once I click on "View"

HTML in HEAD

<style type="text/css">
.hidden {
display:none;
}
</style>
<script type="text/javascript">
function showHidden(obj){
var thisP=obj.parentNode.nextSibling;
while(thisP.nodeName!='P'){thisP=thisP.nextSibling}
var allP=obj.parentNode.parentNode.getElementsByTagName('p'), i=0, P;
while(P=allP[i++]){
if(P.className=='hidden'){
P.style.display=P==thisP?P.style.display=='none'||P.style.display==''?'block':'none':'none';
}
}
}
</script>

HTML in BODY

<div>
<h4 class="story-headline">Serie A League Results</h4>
<p>
<p>
<span onclick="showHidden(this)">View</span>
</p>
<p class="hidden">

Hidden content goes here..

</p>
<!--end wrap--></div>


My CSS is at www.minifigtimes.com/default.css

Now the issue I have is that I want to hide a whole pile of tables and horrible looking stuff, not just plain old text. Is this possible?

This is what I want to hide...




<table cellspacing="0" cellpadding="3" border="0" width="550" class="table1">
<tbody>

<!-- REPLACE BELOW CODE WITH NEW TABLE CODE -->

<tr>
<th align="middle" colspan="5"></th>
</tr>




<tr>
<td align="left"><b>Ajax Skerries</b></td>
<td align="left">1</td>
<td align="left"></td>
<td align="left"><b>Celebs</b></td>

<td align="left">2</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Oliver Kapo 31<br></td>
<td></td>
<td colSpan="2" vAlign="top">Alexandre Pato 5<br>Florent Malouda 77<br></td>
</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 1-1</font></td>
</tr>

<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Ajax Arena</font></td>
</tr>
<tr><td colspan="5"><b>Ajax Skerries: </b> Artur Boruc; Igor Tudor; Alessandro Grandoni; Gian Elia Amoretti; Oliver Kapo; Kim K&#228;llstr&#246;m; Emiliano Bigica; Julio Baldivieso; Fabrizio Miccoli; Peter Vougt; Massimiliano Esposito.</td><tr>
<tr><td colspan="5"><b>Celebs: </b> Toni Prats; C&#233;sar Prates; Taribo West; Alessandro Pierini; Claudio Bonomi; Jocelyn Blanchard; Florent Malouda; Frank Lampard; Alexandre Pato; Mohamed Kallon; Lionel Messi.</td><tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Emperor Eagles</b></td>
<td align="left">2</td>

<td align="left"></td>
<td align="left"><b>Torino</b></td>
<td align="left">1</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Antonio La Fortezza 1,88<br></td>
<td></td>
<td colSpan="2" vAlign="top">Alvaro Recoba 15<br></td>
</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 1-1</font></td>

</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: San Nicola</font></td>
</tr>
<tr><td colspan="5"><b>Emperor Eagles: </b> Vincent Fernandez; Nicola Boselli; Mark Iuliano; Sergio Ramos; Massimo Brambilla; Marcos Senna; Franco Semioli; Daniel Tjernstr&#246;m; Santiago Ezquerro; Mohammed Aliyu; Enrico Chiesa.</td><tr>
<tr><td colspan="5"><b>Torino: </b> Matteo Sereni; Michael Reiziger; Giuseppe Pancaro; Gianluca Comotto; Cristian Brocchi; Giuliano Giannichedda; Nikola Lazetic; Alessandro Rosina; Valeri Bojinov; Alvaro Recoba; Roberto Muzzi.</td><tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Fiorentina</b></td>

<td align="left">0</td>
<td align="left"></td>
<td align="left"><b>Legoland United</b></td>
<td align="left">3</td>
</tr>
<tr>
<td colSpan="2" vAlign="top"></td>
<td></td>
<td colSpan="2" vAlign="top">Leper 5,78<br>Cripple 50<br></td>
</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>

<td></td>
<td colSpan="2"><font size="-1">Half-Time: 0-1</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Artemio Franchi</font></td>
</tr>
<tr><td colspan="5"><b>Fiorentina: </b> S&#233;bastien Frey; Ricardo Osorio; Christian Terlizzi; Federico Balzaretti; Anthony Vanden Borre; Stefano Fiore; Reto Ziegler; Giampiero Pinzi; Macauley Chrisantus; Fred; Christian Vieri.</td><tr>
<tr><td colspan="5"><b>Legoland United: </b> Francesco Antonioli; David Balleri; Mauro Bonomi; Fabio Galante; Iv&#225;n De la Pe&#241;a; Jesper Blomqvist; Robert Pir&#232;s; Alex Taribello; Leper; Christy; Cripple.</td><tr>
<tr><td>&nbsp;</td></tr>

<tr>
<td align="left"><b>Inter</b></td>
<td align="left">2</td>
<td align="left"></td>
<td align="left"><b>Napoli</b></td>
<td align="left">0</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Esteban Cambiasso 64<br>David Suazo 75<br></td>
<td></td>
<td colSpan="2" vAlign="top"></td>

</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 0-0</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: San Siro</font></td>
</tr>
<tr><td colspan="5"><b>Inter: </b> J&#250;lio C&#233;sar; Christian Chivu; Iv&#225;n C&#243;rdoba; Nicol&#225;s Burdisso; Javier Zanetti; Patrick Vieira; Esteban Cambiasso; Sulley Ali Muntari; Julio Cruz; Zlatan Ibrahimovic; Mario Balotelli.</td><tr>
<tr><td colspan="5"><b>Napoli: </b> Gennaro Iezzo; Paolo Cannavaro; Diego Lugano; Maurizio Domizzi; Walter Gargano; Samuele Dalla Bona; Filippo Savi; Ronaldinho; Kerlon; Marcelo Zalayeta; Didier Drogba.</td><tr>

<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Inter Police</b></td>
<td align="left">2</td>
<td align="left"></td>
<td align="left"><b>Roma</b></td>
<td align="left">0</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Luca Toni Pen 15<br>Aurel Augustin Calin 88<br></td>
<td></td>

<td colSpan="2" vAlign="top"></td>
</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 1-0</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Imperial Stadium</font></td>
</tr>
<tr><td colspan="5"><b>Inter Police: </b> Giuseppe Taglialatela; Fabio Grosso; Alessandro Nesta; Joos Valgaeren; Wesley Sneijder; Jos&#233; Mamede; Pavel Nedved; Ronnie O'Brien; Aurel Augustin Calin; Wayne Rooney; Luca Toni.</td><tr>
<tr><td colspan="5"><b>Roma: </b> Luca Mondini; Marco Cassetti; John Arne Riise; Max Tonetto; Daniele De Rossi; Alberto Aquilani; Simone Perrotta; Rodrigo Taddei; Mirko Vucinic; Marcello Salas; J&#250;lio Baptista.</td><tr>

<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Juventus</b></td>
<td align="left">0</td>
<td align="left"></td>
<td align="left"><b>Robin Rangers</b></td>
<td align="left">0</td>
</tr>
<tr>
<td colSpan="2" vAlign="top"></td>
<td></td>
<td colSpan="2" vAlign="top"></td>
</tr>

<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1"></font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Delle Alpi</font></td>
</tr>
<tr><td colspan="5"><b>Juventus: </b> Gianluigi Buffon; Olof Mellberg; Jonathan Zebina; Giorgio Chiellini; Mohamed Sissoko; Claudio Marchisio; Mauro Camoranesi; Emperor David; Amauri; Alessandro Del Piero; Vincenzo Iaquinta.</td><tr>
<tr><td colspan="5"><b>Robin Rangers: </b> Petr Cech; Valentino Ubbiali; Cristano Petiziol; Marco Pennacchietti; Nils Br&#229;; Daniel Jensen; Mourad Meghni; Johan Micoud; Benni McCarthy; Massimo Margiotta; Roman Pavlyuchenko.</td><tr>

<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Lazio</b></td>
<td align="left">2</td>
<td align="left"></td>
<td align="left"><b>Black Fortress Barbarians</b></td>
<td align="left">0</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Simone Inzaghi 23,48<br></td>
<td></td>
<td colSpan="2" vAlign="top"></td>

</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 1-0</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Olimpico</font></td>
</tr>
<tr><td colspan="5"><b>Lazio: </b> Juan Carrizo; Em&#237;lson Cribari; Sebastiano Siviglia; Philipp Lahm; Cristian Ledesma; Steed Malbranque; Landon Donovan; Goran Pandev; Ruud van Nistelrooy; Simone Inzaghi; Tomasso Rocchi.</td><tr>
<tr><td colspan="5"><b>Black Fortress Barbarians: </b> Craig Gordon; Calvin Jong-a-Pin; Franck Matingou; Florian Marange; Luigi Di Biagio; Jhasmani Campos; Riccardo Montolivo; Davide Ratti; Nicola Amoruso; Fabio Quagliarella; Marcelo Moreno.</td><tr>

<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Legoland FC</b></td>
<td align="left">1</td>
<td align="left"></td>
<td align="left"><b>Greentown Athletic</b></td>
<td align="left">0</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Ra&#250;l 16<br></td>
<td></td>
<td colSpan="2" vAlign="top"></td>

</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 1-0</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Partizan</font></td>
</tr>
<tr><td colspan="5"><b>Legoland FC: </b> Francesco Toldo; Ashley Cole; Marco Zamboni; Marco Materazzi; J&#233;rome Leroy; Patrick Monny-Bille; Marek Hamsyk; Denilson; Benoit Le Bris; Ra&#250;l; Ariffin.</td><tr>
<tr><td colspan="5"><b>Greentown Athletic: </b> Giorgio Frezzolini; Riccardo Giacopuzzi; Gianni Ceccarelli; Peter Livon; John O'Shea; Carmine Coppola; Tomas Locatelli; Dragan Ciric; Savo Miloševic; Gaetano Grieco; Marcio Amoroso.</td><tr>

<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Marino</b></td>
<td align="left">1</td>
<td align="left"></td>
<td align="left"><b>Legoland Town</b></td>
<td align="left">2</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Wook-Jin You Pen 39<br></td>
<td></td>
<td colSpan="2" vAlign="top">Alessio Cerci 12<br>Graziano Pell&#232; 67<br></td>

</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 1-1</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Export Arena</font></td>
</tr>
<tr><td colspan="5"><b>Marino: </b> Marco Ambrosio; C&#233;dric Chagot; Joseph Yobo; Richard Dunne; Charles N'Zogbia; Toni Di Tullio; Takashi Fukunishi; David Pizaro; Victor Obinna; Lomana LuaLua; Wook-Jin You.</td><tr>
<tr><td colspan="5"><b>Legoland Town: </b> Roberto Verdi; Johnny Lever&#243;n; Lorenzo Stovini; C&#233;dric Chabert; Alessandro Piovesan; Fabio Pecchia; Reynald Pedros; Alessio Cerci; Ismael Ayaz; Ricardo Oliveira; Graziano Pell&#232;.</td><tr>

<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Parma</b></td>
<td align="left">1</td>
<td align="left"></td>
<td align="left"><b>Port Villa</b></td>
<td align="left">0</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Davide Sinigaglia 18<br></td>
<td></td>
<td colSpan="2" vAlign="top"></td>

</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 1-0</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Ennio Tardini</font></td>
</tr>
<tr><td colspan="5"><b>Parma: </b> Roman Weidenfeller; Jonas Lindstrand; Marco Rossi; Luca Calzolaio; DaMarcus Beasley; Massimo Ambrosini; Daniele Dessena; Ariel Ortega; Roberto Maffucci; Davide Sinigaglia; Arturo Di Napoli.</td><tr>
<tr><td colspan="5"><b>Port Villa: </b> Marco Amelia; Mario Melchiot; Andrea Dossena; Kenny Cunningham; Hatem Trabelsi; Alessio Tacchinardi; David Albelda; Enzo Maresca; Antonio Cassano; Enrico Fantini; Rolando Bianchi.</td><tr>

<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Republic</b></td>
<td align="left">1</td>
<td align="left"></td>
<td align="left"><b>Lion Lakers</b></td>
<td align="left">0</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">David Connolly 58<br></td>
<td></td>
<td colSpan="2" vAlign="top"></td>

</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 0-0</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Republican Stadium</font></td>
</tr>
<tr><td colspan="5"><b>Republic: </b> Azizon Mohamed; Thomas Rytter; Ian Harte; Steve Finnan; Mahamadou Diarra; Kevin Kilbane; Andy Reid; Stephen Ireland; Mart&#237;n Palermo; Lars-Gunnar Carlstrand; David Connolly.</td><tr>
<tr><td colspan="5"><b>Lion Lakers: </b> Christophe Revault; Johan Djourou; L&#250;cio; Gabriel Heinze; Kolo Toure; Franck Ribery; Steven Gerrard; Martins Adailton; Vincenzo Montella; Hern&#225;n Crespo; Ronaldo.</td><tr>

<tr><td>&nbsp;</td></tr>



<!-- REPLACE ABOVE CODE WITH NEW TABLE CODE -->
</tbody>
</table>

CaptainB
02-27-2009, 03:56 PM
I guess you could wrap it all in a div and hide it like you do with your other stuff.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="javascript" type="text/javascript">
function displayDiv()
{
var dv = document.getElementById("hidden");
dv.style.display = ( dv.style.display != "block" ) ? "block" : "none";
}
</script>
</head>

<body>
<span onclick="displayDiv()"><b>Click to hide</b></span>
<div id="hidden">
<table cellspacing="0" cellpadding="3" border="0" width="550" class="table1">
<tbody>

<!-- REPLACE BELOW CODE WITH NEW TABLE CODE -->

<tr>
<th align="middle" colspan="5"></th>
</tr>




<tr>
<td align="left"><b>Ajax Skerries</b></td>
<td align="left">1</td>
<td align="left"></td>
<td align="left"><b>Celebs</b></td>

<td align="left">2</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Oliver Kapo 31<br></td>
<td></td>
<td colSpan="2" vAlign="top">Alexandre Pato 5<br>Florent Malouda 77<br></td>
</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 1-1</font></td>
</tr>

<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Ajax Arena</font></td>
</tr>
<tr><td colspan="5"><b>Ajax Skerries: </b> Artur Boruc; Igor Tudor; Alessandro Grandoni; Gian Elia Amoretti; Oliver Kapo; Kim K&#228;llström; Emiliano Bigica; Julio Baldivieso; Fabrizio Miccoli; Peter Vougt; Massimiliano Esposito.</td><tr>
<tr><td colspan="5"><b>Celebs: </b> Toni Prats; C&#233;sar Prates; Taribo West; Alessandro Pierini; Claudio Bonomi; Jocelyn Blanchard; Florent Malouda; Frank Lampard; Alexandre Pato; Mohamed Kallon; Lionel Messi.</td><tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Emperor Eagles</b></td>
<td align="left">2</td>

<td align="left"></td>
<td align="left"><b>Torino</b></td>
<td align="left">1</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Antonio La Fortezza 1,88<br></td>
<td></td>
<td colSpan="2" vAlign="top">Alvaro Recoba 15<br></td>
</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 1-1</font></td>

</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: San Nicola</font></td>
</tr>
<tr><td colspan="5"><b>Emperor Eagles: </b> Vincent Fernandez; Nicola Boselli; Mark Iuliano; Sergio Ramos; Massimo Brambilla; Marcos Senna; Franco Semioli; Daniel Tjernstr&#246;m; Santiago Ezquerro; Mohammed Aliyu; Enrico Chiesa.</td><tr>
<tr><td colspan="5"><b>Torino: </b> Matteo Sereni; Michael Reiziger; Giuseppe Pancaro; Gianluca Comotto; Cristian Brocchi; Giuliano Giannichedda; Nikola Lazetic; Alessandro Rosina; Valeri Bojinov; Alvaro Recoba; Roberto Muzzi.</td><tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Fiorentina</b></td>

<td align="left">0</td>
<td align="left"></td>
<td align="left"><b>Legoland United</b></td>
<td align="left">3</td>
</tr>
<tr>
<td colSpan="2" vAlign="top"></td>
<td></td>
<td colSpan="2" vAlign="top">Leper 5,78<br>Cripple 50<br></td>
</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>

<td></td>
<td colSpan="2"><font size="-1">Half-Time: 0-1</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Artemio Franchi</font></td>
</tr>
<tr><td colspan="5"><b>Fiorentina: </b> S&#233;bastien Frey; Ricardo Osorio; Christian Terlizzi; Federico Balzaretti; Anthony Vanden Borre; Stefano Fiore; Reto Ziegler; Giampiero Pinzi; Macauley Chrisantus; Fred; Christian Vieri.</td><tr>
<tr><td colspan="5"><b>Legoland United: </b> Francesco Antonioli; David Balleri; Mauro Bonomi; Fabio Galante; Iv&#225;n De la Peña; Jesper Blomqvist; Robert Pirès; Alex Taribello; Leper; Christy; Cripple.</td><tr>
<tr><td>&nbsp;</td></tr>

<tr>
<td align="left"><b>Inter</b></td>
<td align="left">2</td>
<td align="left"></td>
<td align="left"><b>Napoli</b></td>
<td align="left">0</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Esteban Cambiasso 64<br>David Suazo 75<br></td>
<td></td>
<td colSpan="2" vAlign="top"></td>

</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 0-0</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: San Siro</font></td>
</tr>
<tr><td colspan="5"><b>Inter: </b> J&#250;lio César; Christian Chivu; Iván Córdoba; Nicolás Burdisso; Javier Zanetti; Patrick Vieira; Esteban Cambiasso; Sulley Ali Muntari; Julio Cruz; Zlatan Ibrahimovic; Mario Balotelli.</td><tr>
<tr><td colspan="5"><b>Napoli: </b> Gennaro Iezzo; Paolo Cannavaro; Diego Lugano; Maurizio Domizzi; Walter Gargano; Samuele Dalla Bona; Filippo Savi; Ronaldinho; Kerlon; Marcelo Zalayeta; Didier Drogba.</td><tr>

<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Inter Police</b></td>
<td align="left">2</td>
<td align="left"></td>
<td align="left"><b>Roma</b></td>
<td align="left">0</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Luca Toni Pen 15<br>Aurel Augustin Calin 88<br></td>
<td></td>

<td colSpan="2" vAlign="top"></td>
</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 1-0</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Imperial Stadium</font></td>
</tr>
<tr><td colspan="5"><b>Inter Police: </b> Giuseppe Taglialatela; Fabio Grosso; Alessandro Nesta; Joos Valgaeren; Wesley Sneijder; Jos&#233; Mamede; Pavel Nedved; Ronnie O'Brien; Aurel Augustin Calin; Wayne Rooney; Luca Toni.</td><tr>
<tr><td colspan="5"><b>Roma: </b> Luca Mondini; Marco Cassetti; John Arne Riise; Max Tonetto; Daniele De Rossi; Alberto Aquilani; Simone Perrotta; Rodrigo Taddei; Mirko Vucinic; Marcello Salas; J&#250;lio Baptista.</td><tr>

<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Juventus</b></td>
<td align="left">0</td>
<td align="left"></td>
<td align="left"><b>Robin Rangers</b></td>
<td align="left">0</td>
</tr>
<tr>
<td colSpan="2" vAlign="top"></td>
<td></td>
<td colSpan="2" vAlign="top"></td>
</tr>

<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1"></font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Delle Alpi</font></td>
</tr>
<tr><td colspan="5"><b>Juventus: </b> Gianluigi Buffon; Olof Mellberg; Jonathan Zebina; Giorgio Chiellini; Mohamed Sissoko; Claudio Marchisio; Mauro Camoranesi; Emperor David; Amauri; Alessandro Del Piero; Vincenzo Iaquinta.</td><tr>
<tr><td colspan="5"><b>Robin Rangers: </b> Petr Cech; Valentino Ubbiali; Cristano Petiziol; Marco Pennacchietti; Nils Br&#229;; Daniel Jensen; Mourad Meghni; Johan Micoud; Benni McCarthy; Massimo Margiotta; Roman Pavlyuchenko.</td><tr>

<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Lazio</b></td>
<td align="left">2</td>
<td align="left"></td>
<td align="left"><b>Black Fortress Barbarians</b></td>
<td align="left">0</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Simone Inzaghi 23,48<br></td>
<td></td>
<td colSpan="2" vAlign="top"></td>

</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 1-0</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Olimpico</font></td>
</tr>
<tr><td colspan="5"><b>Lazio: </b> Juan Carrizo; Em&#237;lson Cribari; Sebastiano Siviglia; Philipp Lahm; Cristian Ledesma; Steed Malbranque; Landon Donovan; Goran Pandev; Ruud van Nistelrooy; Simone Inzaghi; Tomasso Rocchi.</td><tr>
<tr><td colspan="5"><b>Black Fortress Barbarians: </b> Craig Gordon; Calvin Jong-a-Pin; Franck Matingou; Florian Marange; Luigi Di Biagio; Jhasmani Campos; Riccardo Montolivo; Davide Ratti; Nicola Amoruso; Fabio Quagliarella; Marcelo Moreno.</td><tr>

<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Legoland FC</b></td>
<td align="left">1</td>
<td align="left"></td>
<td align="left"><b>Greentown Athletic</b></td>
<td align="left">0</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Ra&#250;l 16<br></td>
<td></td>
<td colSpan="2" vAlign="top"></td>

</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 1-0</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Partizan</font></td>
</tr>
<tr><td colspan="5"><b>Legoland FC: </b> Francesco Toldo; Ashley Cole; Marco Zamboni; Marco Materazzi; J&#233;rome Leroy; Patrick Monny-Bille; Marek Hamsyk; Denilson; Benoit Le Bris; Raúl; Ariffin.</td><tr>
<tr><td colspan="5"><b>Greentown Athletic: </b> Giorgio Frezzolini; Riccardo Giacopuzzi; Gianni Ceccarelli; Peter Livon; John O'Shea; Carmine Coppola; Tomas Locatelli; Dragan Ciric; Savo Miloševic; Gaetano Grieco; Marcio Amoroso.</td><tr>

<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Marino</b></td>
<td align="left">1</td>
<td align="left"></td>
<td align="left"><b>Legoland Town</b></td>
<td align="left">2</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Wook-Jin You Pen 39<br></td>
<td></td>
<td colSpan="2" vAlign="top">Alessio Cerci 12<br>Graziano Pellè 67<br></td>

</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 1-1</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Export Arena</font></td>
</tr>
<tr><td colspan="5"><b>Marino: </b> Marco Ambrosio; Cédric Chagot; Joseph Yobo; Richard Dunne; Charles N'Zogbia; Toni Di Tullio; Takashi Fukunishi; David Pizaro; Victor Obinna; Lomana LuaLua; Wook-Jin You.</td><tr>
<tr><td colspan="5"><b>Legoland Town: </b> Roberto Verdi; Johnny Lever&#243;n; Lorenzo Stovini; Cédric Chabert; Alessandro Piovesan; Fabio Pecchia; Reynald Pedros; Alessio Cerci; Ismael Ayaz; Ricardo Oliveira; Graziano Pellè.</td><tr>

<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Parma</b></td>
<td align="left">1</td>
<td align="left"></td>
<td align="left"><b>Port Villa</b></td>
<td align="left">0</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">Davide Sinigaglia 18<br></td>
<td></td>
<td colSpan="2" vAlign="top"></td>

</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 1-0</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Ennio Tardini</font></td>
</tr>
<tr><td colspan="5"><b>Parma: </b> Roman Weidenfeller; Jonas Lindstrand; Marco Rossi; Luca Calzolaio; DaMarcus Beasley; Massimo Ambrosini; Daniele Dessena; Ariel Ortega; Roberto Maffucci; Davide Sinigaglia; Arturo Di Napoli.</td><tr>
<tr><td colspan="5"><b>Port Villa: </b> Marco Amelia; Mario Melchiot; Andrea Dossena; Kenny Cunningham; Hatem Trabelsi; Alessio Tacchinardi; David Albelda; Enzo Maresca; Antonio Cassano; Enrico Fantini; Rolando Bianchi.</td><tr>

<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><b>Republic</b></td>
<td align="left">1</td>
<td align="left"></td>
<td align="left"><b>Lion Lakers</b></td>
<td align="left">0</td>
</tr>
<tr>
<td colSpan="2" vAlign="top">David Connolly 58<br></td>
<td></td>
<td colSpan="2" vAlign="top"></td>

</tr>
<tr>
<td colSpan="2"><font size="-1"></font></td>
<td></td>
<td colSpan="2"><font size="-1">Half-Time: 0-0</font></td>
</tr>
<tr>
<td colSpan="5" align="left"><font size="-1">Venue: Republican Stadium</font></td>
</tr>
<tr><td colspan="5"><b>Republic: </b> Azizon Mohamed; Thomas Rytter; Ian Harte; Steve Finnan; Mahamadou Diarra; Kevin Kilbane; Andy Reid; Stephen Ireland; Mart&#237;n Palermo; Lars-Gunnar Carlstrand; David Connolly.</td><tr>
<tr><td colspan="5"><b>Lion Lakers: </b> Christophe Revault; Johan Djourou; L&#250;cio; Gabriel Heinze; Kolo Toure; Franck Ribery; Steven Gerrard; Martins Adailton; Vincenzo Montella; Hernán Crespo; Ronaldo.</td><tr>

<tr><td>&nbsp;</td></tr>



<!-- REPLACE ABOVE CODE WITH NEW TABLE CODE -->
</tbody>
</table>






</div>
Partizan
View Public Profile
Send a private message to Partizan
Visit Partizan's homepage!
Find More Posts by Partizan
Add Partizan to Your Contacts

02-27-2009, 03:56 PM PM User | Report this post #2
CaptainB
Regular Coder





Join Date: Jun 2007
Location: Denmark
Posts: 554
Thanks: 74
Thanked 13 Times in 13 Posts
I guess you could wrap it all in a
</body>
</html>

Partizan
02-27-2009, 04:12 PM
Thanks a million CaptainB!

I am just trying to figure out one thing.. how do I make the content be hidden when the page is loaded? In other words the user should have to click on the onClick text to make the football results appear.

CaptainB
02-27-2009, 04:42 PM
Set the div's style wrapping the content to:


#divid{display:none;}

Partizan
02-27-2009, 04:53 PM
Thank you!

Partizan
02-27-2009, 07:01 PM
Ah something is not right with the code and IE..

Nothing appears upon onClick when i click on "Click to view Serie A results for this round." under the table on this page http://www.minifigtimes.com/football/0809/0809-round-30.shtml

It works fine, however, in Firefox and chrome..

any idea what is wrong?

CaptainB
02-27-2009, 07:34 PM
What version of IE? It works perfectly in IE7.:)

Partizan
02-27-2009, 07:41 PM
Its IE8 Beta but I also use this tag

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">

CaptainB
02-27-2009, 08:39 PM
Its IE8 Beta but I also use this tag

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">

I have to admit that I don't know a thing about IE8...however, if it's still a beta that might be the problem. Sorry pal, I don't know how to fix that one :(

Partizan
02-27-2009, 09:43 PM
No problem, thanks for the help so far!! :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum