stvchez123
Programmer
i've closed the other thread as it was going in the wrong direction. here is my dilema. I need to make two images (parent/child) draggable together. I have a script which should do the trick, but I'm stuck getting the two to move in sync.
url example:
here's the pertininent code so far:
<div id="newsTabLayer" style="position: absolute; visibility: visible;
top:355px; left:472px; width: 151; height: 17; z-index: 2; ">
<img border="0" width="151" height="17" alt="In the news" name="newsTab" src="news_tab.gif">
</div>
<div id="inTheNewsLayer" style="position: absolute; visibility: visible;
top:355px; left:472px; width: 151; height: 17; z-index: 1; ">
<img border="0" width="319" height="203" alt="In the news" name="inTheNews" src="in_the_news.gif">
</div>
<script type="text/javascript">
<!--
SET_DHTML("newsTabLayer"+DETACH_CHILDREN, "inTheNews", "newsTab", "inTheNewsLayer");
//-->
</script>
url example:
here's the pertininent code so far:
<div id="newsTabLayer" style="position: absolute; visibility: visible;
top:355px; left:472px; width: 151; height: 17; z-index: 2; ">
<img border="0" width="151" height="17" alt="In the news" name="newsTab" src="news_tab.gif">
</div>
<div id="inTheNewsLayer" style="position: absolute; visibility: visible;
top:355px; left:472px; width: 151; height: 17; z-index: 1; ">
<img border="0" width="319" height="203" alt="In the news" name="inTheNews" src="in_the_news.gif">
</div>
<script type="text/javascript">
<!--
SET_DHTML("newsTabLayer"+DETACH_CHILDREN, "inTheNews", "newsTab", "inTheNewsLayer");
//-->
</script>