Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder Partizan's Avatar
    Join Date
    Dec 2008
    Location
    Legoland and Ireland
    Posts
    139
    Thanks
    74
    Thanked 0 Times in 0 Posts

    revealing hidden content onClick

    I have the following script that works fine in that it reveals hidden text once I click on "View"

    HTML in HEAD
    PHP Code:
    <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=0P;
    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
    PHP Code:
    <div>
      <
    h4 class="story-headline">Serie A League Results</h4>     
            <
    p>        
            <
    p>
            <
    span onclick="showHidden(this)">View</span>
           </
    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...
    PHP Code:
        

     
    <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-Time1-1</font></td>
    </
    tr>

    <
    tr>
    <
    td colSpan="5" align="left"><font size="-1">VenueAjax Arena</font></td>
    </
    tr>
    <
    tr><td colspan="5"><b>Ajax Skerries: </bArtur BorucIgor TudorAlessandro GrandoniGian Elia AmorettiOliver KapoKim K&#228;llström; Emiliano Bigica; Julio Baldivieso; Fabrizio Miccoli; Peter Vougt; Massimiliano Esposito.</td><tr>
    <tr><td colspan="5"><b>Celebs: </bToni PratsC&#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-Time1-1</font></td>

    </
    tr>
    <
    tr>
    <
    td colSpan="5" align="left"><font size="-1">VenueSan Nicola</font></td>
    </
    tr>
    <
    tr><td colspan="5"><b>Emperor Eagles: </bVincent FernandezNicola BoselliMark IulianoSergio RamosMassimo BrambillaMarcos SennaFranco SemioliDaniel Tjernstr&#246;m; Santiago Ezquerro; Mohammed Aliyu; Enrico Chiesa.</td><tr>
    <tr><td colspan="5"><b>Torino: </bMatteo SereniMichael ReizigerGiuseppe PancaroGianluca ComottoCristian BrocchiGiuliano GiannicheddaNikola LazeticAlessandro RosinaValeri BojinovAlvaro RecobaRoberto 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-Time0-1</font></td>
    </
    tr>
    <
    tr>
    <
    td colSpan="5" align="left"><font size="-1">VenueArtemio Franchi</font></td>
    </
    tr>
    <
    tr><td colspan="5"><b>Fiorentina: </bS&#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: </bFrancesco AntonioliDavid BalleriMauro BonomiFabio GalanteIv&#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-Time0-0</font></td>
    </
    tr>
    <
    tr>
    <
    td colSpan="5" align="left"><font size="-1">VenueSan Siro</font></td>
    </
    tr>
    <
    tr><td colspan="5"><b>Inter: </bJ&#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: </bGennaro IezzoPaolo CannavaroDiego LuganoMaurizio DomizziWalter GarganoSamuele Dalla BonaFilippo SaviRonaldinhoKerlonMarcelo ZalayetaDidier 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-Time1-0</font></td>
    </
    tr>
    <
    tr>
    <
    td colSpan="5" align="left"><font size="-1">VenueImperial Stadium</font></td>
    </
    tr>
    <
    tr><td colspan="5"><b>Inter Police: </bGiuseppe TaglialatelaFabio GrossoAlessandro NestaJoos ValgaerenWesley SneijderJos&#233; Mamede; Pavel Nedved; Ronnie O'Brien; Aurel Augustin Calin; Wayne Rooney; Luca Toni.</td><tr>
    <tr><td colspan="5"><b>Roma: </bLuca MondiniMarco CassettiJohn Arne RiiseMax TonettoDaniele De RossiAlberto AquilaniSimone PerrottaRodrigo TaddeiMirko VucinicMarcello SalasJ&#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">VenueDelle Alpi</font></td>
    </
    tr>
    <
    tr><td colspan="5"><b>Juventus: </bGianluigi BuffonOlof MellbergJonathan ZebinaGiorgio ChielliniMohamed SissokoClaudio MarchisioMauro CamoranesiEmperor DavidAmauriAlessandro Del PieroVincenzo Iaquinta.</td><tr>
    <
    tr><td colspan="5"><b>Robin Rangers: </bPetr CechValentino UbbialiCristano PetiziolMarco PennacchiettiNils 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-Time1-0</font></td>
    </
    tr>
    <
    tr>
    <
    td colSpan="5" align="left"><font size="-1">VenueOlimpico</font></td>
    </
    tr>
    <
    tr><td colspan="5"><b>Lazio: </bJuan CarrizoEm&#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: </bCraig GordonCalvin Jong-a-PinFranck MatingouFlorian MarangeLuigi Di BiagioJhasmani CamposRiccardo MontolivoDavide RattiNicola AmorusoFabio QuagliarellaMarcelo 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-Time1-0</font></td>
    </
    tr>
    <
    tr>
    <
    td colSpan="5" align="left"><font size="-1">VenuePartizan</font></td>
    </
    tr>
    <
    tr><td colspan="5"><b>Legoland FC: </bFrancesco ToldoAshley ColeMarco ZamboniMarco MaterazziJ&#233;rome Leroy; Patrick Monny-Bille; Marek Hamsyk; Denilson; Benoit Le Bris; Raúl; Ariffin.</td><tr>
    <tr><td colspan="5"><b>Greentown Athletic: </bGiorgio FrezzoliniRiccardo GiacopuzziGianni CeccarelliPeter LivonJohn 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'
    ZogbiaToni Di TullioTakashi FukunishiDavid PizaroVictor ObinnaLomana LuaLuaWook-Jin You.</td><tr>
    <
    tr><td colspan="5"><b>Legoland Town: </bRoberto VerdiJohnny 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-Time1-0</font></td>
    </
    tr>
    <
    tr>
    <
    td colSpan="5" align="left"><font size="-1">VenueEnnio Tardini</font></td>
    </
    tr>
    <
    tr><td colspan="5"><b>Parma: </bRoman WeidenfellerJonas LindstrandMarco RossiLuca CalzolaioDaMarcus BeasleyMassimo AmbrosiniDaniele DessenaAriel OrtegaRoberto MaffucciDavide SinigagliaArturo Di Napoli.</td><tr>
    <
    tr><td colspan="5"><b>Port Villa: </bMarco AmeliaMario MelchiotAndrea DossenaKenny CunninghamHatem TrabelsiAlessio TacchinardiDavid AlbeldaEnzo MarescaAntonio CassanoEnrico FantiniRolando 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-Time0-0</font></td>
    </
    tr>
    <
    tr>
    <
    td colSpan="5" align="left"><font size="-1">VenueRepublican Stadium</font></td>
    </
    tr>
    <
    tr><td colspan="5"><b>Republic: </bAzizon MohamedThomas RytterIan HarteSteve FinnanMahamadou DiarraKevin KilbaneAndy ReidStephen IrelandMart&#237;n Palermo; Lars-Gunnar Carlstrand; David Connolly.</td><tr>
    <tr><td colspan="5"><b>Lion Lakers: </bChristophe RevaultJohan DjourouL&#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

  • #2
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    I guess you could wrap it all in a div and hide it like you do with your other stuff.

    Code:
    <!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>
    Last edited by CaptainB; 02-27-2009 at 04:01 PM.

  • Users who have thanked CaptainB for this post:

    Partizan (02-27-2009)

  • #3
    Regular Coder Partizan's Avatar
    Join Date
    Dec 2008
    Location
    Legoland and Ireland
    Posts
    139
    Thanks
    74
    Thanked 0 Times in 0 Posts
    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.
    Last edited by Partizan; 02-27-2009 at 04:42 PM.

  • #4
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    Set the div's style wrapping the content to:

    Code:
    #divid{display:none;}

  • Users who have thanked CaptainB for this post:

    Partizan (02-27-2009)

  • #5
    Regular Coder Partizan's Avatar
    Join Date
    Dec 2008
    Location
    Legoland and Ireland
    Posts
    139
    Thanks
    74
    Thanked 0 Times in 0 Posts
    Thank you!

  • #6
    Regular Coder Partizan's Avatar
    Join Date
    Dec 2008
    Location
    Legoland and Ireland
    Posts
    139
    Thanks
    74
    Thanked 0 Times in 0 Posts
    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...round-30.shtml

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

    any idea what is wrong?

  • #7
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    What version of IE? It works perfectly in IE7.

  • #8
    Regular Coder Partizan's Avatar
    Join Date
    Dec 2008
    Location
    Legoland and Ireland
    Posts
    139
    Thanks
    74
    Thanked 0 Times in 0 Posts
    Its IE8 Beta but I also use this tag

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

  • #9
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    Quote Originally Posted by Partizan View Post
    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

  • #10
    Regular Coder Partizan's Avatar
    Join Date
    Dec 2008
    Location
    Legoland and Ireland
    Posts
    139
    Thanks
    74
    Thanked 0 Times in 0 Posts
    No problem, thanks for the help so far!!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •