<SCRIPT language=JavaScript> function clickHandler() { var targetId, srcElement, targetElement;  srcElement = window.event.srcElement;  if (srcElement.className == "Outline") {     targetId = srcElement.id + "details";     targetElement = document.all(targetId);     if (targetElement.style.display == "none") {        targetElement.style.display = "";     } else {        targetElement.style.display = "none";     }  }} document.onclick = clickHandler; </SCRIPT>


<a class=Outline id=Out1></a>

<DIV id=Out1details style="DISPLAY: none; LEFT: 12px; POSITION: relative"></DIV>

<a class=Outline id=Out2 style="CURSOR: hand">menu</a><BR>

<DIV id=Out2details style="DISPLAY: none; LEFT: 12px; POSITION: relative">
<A class="menu" href="#">01</A><BR>
<A class="menu" href="#">02</A>
</DIV>


</DIV>

1. Нужно местами переписать функцию:

Выделить код

Код:

function clickHandler (event)
{
    var targetId, srcElement, targetElement;
    if (event && event. target)
        srcElement = event. target;
    else
        srcElement = window. event. srcElement;
...
        targetElement = document. getElementById(targetId);
...

2. Заменить style="cursor: hand" на style="cursor: pointer;"