Hi
I want create a script that will allow me to animate any <div> object using dhtml by calling a function like
[code]
onClick(“animate(100,200,50,0,’txt’);”)
that applies to this:
<div id=”txt” style=”position:absolute;left:100;top:200px”>
Some text
</div>
where the function might be:
function animate(xstart,xstop,ystart,ystop,id) {
….
}
in order animate the text to move from (100,50) to (200,0), or any set of start and finish coordinates. I’ve battled with this for hours but it just doesn’t work. I can get a straight up-down, left-right, or diagonal, but a one-function-fits-all is what’s needed for the task (fancy looking pages that look like powerpoint, and I can’t use flash).
Note that this solution is required for MSIE only.
If anyone knows a solution to this or a where I can find it I’d appreciate it.
Thanks