 |
Move
Text Text Text Text Text
Text Text Text Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text Text Text Text
!--> !-->
This example only works with (2001: older versions of)
Netscape because the LAYER tag is used.
The use of this tag, which is not recognised by the W3C,
is not recommended.
Source code: <script
language="javascript">
<!--
function mOver() {document.text.moveBy(50,50);
document.bild.moveBy(100,100);
} function mOut() {document.text.moveBy(-50,-50);
document.bild.moveBy(-100,-100); }
// -->
</script>
<b><LAYER ID="titel"
top="200" left="200"
onClick="alert();"
onmouseover="mOver();"
onmouseout="mOut();">Verschieben</LAYER>
<LAYER ID="text" top="150">Text
Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text Text Text Text
Text Text
Text Text Text Text Text </LAYER>
<!--><LAYER ID="bild"
top=200></!--><img
src="glob11-a.gif" width="56"
height="60"
id="bild"><!--></LAYER></!-->
</b></h1>
|