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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dragging multiple images

Status
Not open for further replies.

stvchez123

Programmer
Apr 18, 2002
59
0
0
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>
 
hey i'v been looking for something like this for my site, but i don't know a lot of DHTML. how would i do that on my site?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top