Hallo!
Frage 1:
Was ist richtig?
a) <div onmouseover="foo();">
b) <div onmouseover="foo()">
Frage 2:
<script type="text/javascript">
<!--
function apfel(foo) { ... }
function banane(foo) { ... }
function birne(foo) { ... }
-->
</script>
Die variable foo wird hier 3 mal verwendet,
einmal in der function apfel,
dann in der function banane und dann in der function birne.
Die werte kommen durch den aufruf im onmouseout rein. (unwichtig)
Frage: Sollte ich nicht für alle 3 funktionen "foo" nehmen
sondern besser andere variablen-namen?
Also so:
<script type="text/javascript">
<!--
function apfel(foo_1) { ... }
function banane(foo_2) { ... }
function birne(foo_3) { ... }
-->
</script>
Danke!
Aqua