Solved

how to move an image?

Posted on 2001-06-25
6
213 Views
Last Modified: 2010-08-05
Does anyone have a reference or idea how i could move images over the length of a graphic, say using a combo of asp and dhtml?

say i have a static graphic with a width of 500 pixels which representsd th elenght of a course. then, i have two small images (2 people) whose positions are updated every 2 minutes or so, citing the distance that they are from the end of the course.
The length of the course would be the width of the image.
The position the person relative to the course would be the distance they are from the end of the course. With every update, the image should position itself closer to the finish of the course graphic. Can this be done? how?
0
Comment
Question by:mikeandbee
6 Comments
 

Expert Comment

by:nesifa
Comment Utility
yes, by the properties of the image. I will get back to this qyestion later because I am busy right now.

Nesifa
0
 
LVL 19

Accepted Solution

by:
webwoman earned 100 total points
Comment Utility
You'd have to set them up on layers/divs, and move them. For a good example and a lot of code you can copy, go to www.dansteinman.com/dynduo

Or check out www.htmlguru.com , he does similar things there.
0
 

Expert Comment

by:zerogravity187
Comment Utility
The above comments were not very precise...you wanna set up two layers like in the code below

<div id="BACKGROUNDLAYER" style="position:absolute; width:479px; height:222px; z-index:1; left: 302px; top: 59px">
<div id="PEOPLELAYER" style="position:absolute; width:16px; height:54px; z-index:1; top: 11px; left:
<%=NEWPOSISTION %>px">
<img src="YOUR PEOPLE IMAGE" width="26" height="22"></div>
  <img src="YOUR BACKGROUND IMAGE" width="300" Height="161"> </div>

Everytime you want the people to move, just increase(or decrease) the amount of the variable NEWPOSITION

place your images in the corresponding layers, tweak the sizes and initial positions and you are all set.

you can also change the top position with another variable to adjust up and down.



0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Expert Comment

by:nesifa
Comment Utility
The above comment works, but for each change you have to go to web server and come back. A lot of round trips go back and forth which are not likely in web design. The best solution is to do everything in client side script.You could change properties left and top of the image. The sample that webwoman gives you is a very good orientation.I do not have time to work on this sample, but by changing the properties of the image you could do the one that you need.

Nesifa
0
 
LVL 1

Expert Comment

by:Moondancer
Comment Utility
Please award/close or advise what else is needed.
Moondancer
Community Support Moderator @ Experts Exchange
0
 
LVL 1

Expert Comment

by:Moondancer
Comment Utility
This question appears to have been abandoned, all your open questions are posted below.
Your options are:
1.  Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you. You must tell the participants why you wish to do this, and allow for Expert response.
3.  Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4.  Delete the question. Again, you must tell the other participants why you wish to do this.
For special handling needs, please post a zero point question in the link below, include the question QID/link.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click this Help Desk link for Member Guidelines, Member Agreement and the Question/Answer process:  Click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues.
http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

PLEASE DO NOT AWARD THE POINTS TO ME.  
 
------------>  EXPERTS:
 
Please leave any comments regarding this question here on closing recommendations if this item remains inactive another three days.
 
Thank you everyone.

Open Qs:
http://www.experts-exchange.com/jsp/qShow.jsp?qid=11677198
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20136244
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20138104
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20139384
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20141051
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20141266
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20147138
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20175597
http://www.experts-exchange.com/jsp/qShow.jsp?qid=11188236

Moondancer
Moderator @ Experts Exchange
 
P.S.  For year 2000 question, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now