Ich möchte eine Mouse-over-Funktion einführen. Das HTA-Programm enthält JS und VBS (Ausschnitt siehe unten). Steht der VBS-Teil zuerst, funktioniert Mouse-over nicht; steht JS zuerst, bleibt der Ende-Button ohne Funktion. Ich steige einfach nicht dahinter, wo das Problem liegt.
<HTML>
<script type=\"text/javascript\">
function replaceit(id,text) {
obj = document.getElementById(id).firstChild;
obj.nodeValue = text; }
</script>
<script language=\"vbscript\">
Sub PEnde
Self.Close
End Sub
</script>
<body>
<table border=\"0\">
<tr><td><p>
<span id=\"text\" onMouseOver=\"replaceit (this.id,\'Mouse over\')\" onMouseOut=\"replaceit( this.id,\'Mouse out\')\">Mouse
</span></td></tr>
<tr></tr><tr></tr><tr></tr><tr></tr>
<td><input class=0 id=runbutton type=\"button\" value=\"Ende\" name=\"stop\" onClick=\"PEnde\"></td>
</table></body>
</HTML>
Weiß irgendjemand Rat ? Danke. |