Plystire
01-12-2003, 12:17 AM
I have two images i am using...and i want to locate one on top of the other...
the first is called Frame.jpg and the one i want on top of it is Button1.gif
i tried locating button1 using the code as follows
<html>
<head>
<script type="text/javascript">
<!--
function placebut1()
{
if (document.all)
{
document.all("button1").style.left=100
document.all("button1").style.top=100
}
else if (document.layers)
{
document.layers["button1"].left=100
document.layers["button1"].top=100
}
}
//-->
</script>
</head>
<body bgcolor="#000000">
<script type="text/javascript">
placebut1()
</script>
<td><p align="center"><img name="Frame" src="Frame.jpg">
</td>
<span id="button1"><img name="Button1" src="Button1.gif" height="40"
width="40" border="0"></span>
</body>
</html>
can someone help me?
thx in advance
~PlystirE~
the first is called Frame.jpg and the one i want on top of it is Button1.gif
i tried locating button1 using the code as follows
<html>
<head>
<script type="text/javascript">
<!--
function placebut1()
{
if (document.all)
{
document.all("button1").style.left=100
document.all("button1").style.top=100
}
else if (document.layers)
{
document.layers["button1"].left=100
document.layers["button1"].top=100
}
}
//-->
</script>
</head>
<body bgcolor="#000000">
<script type="text/javascript">
placebut1()
</script>
<td><p align="center"><img name="Frame" src="Frame.jpg">
</td>
<span id="button1"><img name="Button1" src="Button1.gif" height="40"
width="40" border="0"></span>
</body>
</html>
can someone help me?
thx in advance
~PlystirE~