Hi,
Is it possible to place an image on the screen relative to the position of another image? Something like this:
<img id="imgRel" src="someimage">
<img id="imgAbs" src="otherimage" style="position: absolute; visibility: hidden">
<script language="javascript" for="imgRel" event="onmouseover">
x = document.getElementById("imgAbs"
x.left =
document.getElementById("imgRel".left + 10;
x.style.visibility = "visible";
</script>
Get the idea? Of course that my poor example does not work... It doesn't work either if I use ".style.left" instead of just ".left"....
I'm hoping there's a way to do this without making "imgRel"'s position absolute.
Thanks.
Ivan V.
Is it possible to place an image on the screen relative to the position of another image? Something like this:
<img id="imgRel" src="someimage">
<img id="imgAbs" src="otherimage" style="position: absolute; visibility: hidden">
<script language="javascript" for="imgRel" event="onmouseover">
x = document.getElementById("imgAbs"
x.left =
document.getElementById("imgRel".left + 10;
x.style.visibility = "visible";
</script>
Get the idea? Of course that my poor example does not work... It doesn't work either if I use ".style.left" instead of just ".left"....
I'm hoping there's a way to do this without making "imgRel"'s position absolute.
Thanks.
Ivan V.