Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q179 How can I move a layer using an onMouseOver event handler?

You are here: irt.org | FAQ | DHTML | Q179 [ previous next ]

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript"><!--
function move() {
    if (document.layers) {
        document.layers["moveme"].pageX += 10;
        document.layers["moveme"].pageY += 10;
    }
}
//--></SCRIPT>
</HEAD>

<BODY>

<LAYER NAME="moveme">
<A HREF="#" onMouseOver="move()"><IMG SRC="image.gif" WIDTH="16" HEIGHT="16"></A>
</LAYER>

</BODY>
</HTML>

©2018 Martin Webb