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!

mouse drag question

Status
Not open for further replies.

stvchez123

Programmer
Apr 18, 2002
59
0
0
US
i'm trying to achieve a mouse drag feature. here's what I have so far:


you'll notice that you can click the menu area and drag it around. I'm trying to get it so that when you click the just the 'In the News', then you can move the whole image.

here is the html code:
<div id="inTheNews" style="position: absolute; top:355px; left:472px;">
<img name="InTheNews" src="in_the_news.gif" width="319" height="203" alt="In the news">
</div>

here are coodinates that I'd like:
4,5,157,22

any assistance is greatly appreciated.
 
another thing. here is the code for the mapped part i need clickeable:

<div id="inTheNews" style="position: absolute; top:355px; left:472px;">
<map name="bgmap">
<area coords="4,5,157,22" href="<img border="0" width="319" height="203" alt="In the news" usemap="#bgmap" name="InTheNews" src="in_the_news.gif">
</map>
</div>

when I insert this, the draggable portion quits
 
thanks. through a series of trial and error, i've found that its relatively easy to make the the entire image draggable. is it possible to just make a section draggable?

// url


// heres my code so far. i understand now that image doesn't work. using to explain intention
<div id="inTheNews" style="position: absolute; top:355px; left:472px;">
<map name="bgmap">
<area coords="4,5,157,22" href="<img border="0" width="319" height="203" alt="In the news" usemap="#bgmap" name="InTheNews" src="in_the_news.gif">
</map>
</div>
 
disregard post. need to start new thread on new topic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top