Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mouse drag 2

Status
Not open for further replies.

stvchez123

Programmer
Joined
Apr 18, 2002
Messages
59
Location
US
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>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top