MySQL interesse |
|
JS bestand:
function ShowHide(div,image)
{
var thisLevel = document.getElementById(div);
var thisImage = document.getElementById(image);
if (thisLevel.style.display == "none")
{
thisLevel.style.display = "block";
thisImage.src = "images/min.gif";
}
else
{
var thisLevel = document.getElementById(div);
thisLevel.style.display = "none";
thisImage.src = "images/plus.gif";
}
}
function ShowHide(div,image) { var thisLevel = document.getElementById(div); var thisImage = document.getElementById(image); if (thisLevel.style.display == "none") { thisLevel.style.display = "block"; thisImage.src = "images/min.gif"; } else { var thisLevel = document.getElementById(div); thisLevel.style.display = "none"; thisImage.src = "images/plus.gif"; } }
code:
<a href=\"javascript:ShowHide('div','image');\"><img id=\"image\" src=\"images/plus.gif\" border=\"0\"></a> <a href=\"javascript:ShowHide('div','image');\">Vraag 1</a></strong></p>
<div id=\"div\" style=\"display: none;\">
<p>Antwoord 1</p>
</div>
<a href=\"javascript:ShowHide('div','image');\"><img id=\"image\" src=\"images/plus.gif\" border=\"0\"></a> <a href=\"javascript:ShowHide('div','image');\">Vraag 1</a></strong></p> <div id=\"div\" style=\"display: none;\"> <p>Antwoord 1</p> </div>
Plaatjes moet je maar even opzoeken in de broncode en downloaden of zelf maken. |