Hallo
Liegt das evtl daran, das ja bei jedem Aufruf der Funktion high=false gesetzt wird??
Das bestimmtnicht, zumal das ja auch gar nicht der Fall ist.
Poste doch mal nen Link wo man sich das ganze anschauen kann.
Ich hab m das grad mal in klein nachgebaut und da funktioniert es bestens:
<html>
<head>
<script type="text/javascript">
var test = false;
function abc() {
alert(test);
if (test) {
test = false;
} else {
test = true
}
}
</script>
</head>
<body>
<a href="#" onClick="abc(); return false;"> TESTLINK</a>
</body>
</html>
Grüße
David
--
"Nobody will ever need more than 640k RAM!"
1981 Bill Gates
"Nobody will ever need more than 640k RAM!"
1981 Bill Gates