<Style type = "text/css">
Td
{
Background-color: # eee;
Width: 50px;
Height: 50px;
}
</Style>
<Title> </title>
<Script src = "jquery-1.9.1.js" type = "text/javascript"> </script>
<Script type = "text/javascript">
Var count1 = 1;
Var count2 = 1;
$ (Function (){
$ ('A: eq (0) '). click (function (){
If (count1% 2! = 0)
{
$ ('Td '). hide (2000 );
$ ('Tr: last-child '). hide (2000 );
// Display and expand
$ ('A: eq (0) '). text ('expand ');
}
Else // if ($ ('td '). is (': visible '))
{
$ ('Td '). show (2000 );
$ ('Tr: last-child '). show (2000 );
// Display and expand
$ ('A: eq (0) '). text ('hangzhou ');
}
Count1 ++;
})
$ ('A: eq (1) '). click (function (){
If (count2% 2! = 0 ){
$ ('Tr: eq (2) '). hide (2000 );
$ ('Tr: eq (3) '). hide (2000 );
// Display and expand
$ ('A: eq (1) '). text ('more ');
}
Else {
$ ('Tr: eq (1) '). show (2000 );
$ ('Tr: eq (1) '). show (2000 );
// Display and expand
$ ('A: eq (1) '). text ('simplified ');
}
Count2 ++;
})
})
</Script>
</Head>
<Body>
<Table>
<Tbody>
<Tr> <th colspan = "2"> <strong> News classification </strong> </th> <th id = "gorzh"> <a href = "#"> pending </a> </th> </tr>
<Tr> <td> entertainment </td> <td> sports </td> <td> fashion </td> <td> vehicle </td> </tr>
<Tr> <td> game </td> <td> music </td> <td> novels </td> <td> online shopping </td> </tr>
<Tr> <td> IT </td> <td> tourism </td> </tr>
<Tr> <th> </th> <th id = "jhlan"> <a href = "#"> simplified </a> </th> </tr>
</Tbody>
</Table>
</Body>
</Html>