W HTML 4.0 działa ale czy ktoś wiek jak to ugryźć żeby zadziałało w XHTML ?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">
function doSection (secNum){
if (secNum.style.display=="none"){secNum.style.display=""}
else{secNum.style.display="none"}
}
function noSection (secNum){
if (secNum.style.display==""){secNum.style.display="none"}
}
<p><a onclick="doSection(identyfikator1)" class="anchorclass" href="#nowhere">Open / Close
</a></p> <p></p><div class="ramka1" id="identyfikator1" style="display: none" onclick="noSection(identyfikator1)"> <img src="images/kitty.gif" width="100" height="150" />