PHP expert |
|
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />
<title>M.H.C. Dalfsen</title>
<script language='Javascript'>
function showorhide(id, change)
{
if (document.getElementById(id).style.display == "none")
{
document.getElementById(id).style.display = "block";
document.getElementById(change).innerHTML = "Tekst die er moet staan";
}
else
{
document.getElementById(id).style.display = "none";
}
}
</script>
</head>
<body>
<table cellpadding='0' cellspacing='0'>
<tr>
<td style='width: 100px; background-color: <?= $color ?>'><a href="#" onclick="showorhide('test','de_tekst');">Klik hier</a></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' style='display: none' id='test'>
<tr>
<td id="de_tekst">Deze tekst zie je eerst niet (hoop ik)</td>
</tr>
</table>
</body>
</html>
<html> <head> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' /> <title>M.H.C. Dalfsen</title> <script language='Javascript'> function showorhide(id, change) { if (document.getElementById(id).style.display == "none") { document.getElementById(id).style.display = "block"; document.getElementById(change).innerHTML = "Tekst die er moet staan"; } else { document.getElementById(id).style.display = "none"; } } </script> </head> <body> <table cellpadding='0' cellspacing='0'> <tr> <td style='width: 100px; background-color: <?= $color ?>'><a href="#" onclick="showorhide('test','de_tekst');">Klik hier</a></td> </tr> </table> <table cellpadding='0' cellspacing='0' style='display: none' id='test'> <tr> <td id="de_tekst">Deze tekst zie je eerst niet (hoop ik)</td> </tr> </table> </body> </html>
zo misschien? niet getest |