Connecting Tech Pros Worldwide Forums | Help | Site Map

Moving photos

Lee David
Guest
 
Posts: n/a
#1: Jul 23 '05
What I want to have happen is a photo float above the page moving across it.
I tried to set the z-index to "0" and to "10" to force the floating, but
neither worked.

To do the moving, I understand I have to use different methods depending on
IE (pixelLeft and pixelTop) or NS (moveTo). I'm hoping for the rare Opera,
etc user that one or the other will work. I think I recall that you have to
use different properties to determine the window width and height, but it's
been too long ago for me to remember clearly.

I will have a timer to move the object and it will disappear when it reaches
the end of the page. I might even have a chase between two pictures so I'd
need multiple variables.

Any ideas?

TIA, Lee



RobB
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Moving photos


Lee David wrote:[color=blue]
> What I want to have happen is a photo float above the page moving[/color]
across it.[color=blue]
> I tried to set the z-index to "0" and to "10" to force the floating,[/color]
but[color=blue]
> neither worked.
>
> To do the moving, I understand I have to use different methods[/color]
depending on[color=blue]
> IE (pixelLeft and pixelTop) or NS (moveTo). I'm hoping for the rare[/color]
Opera,[color=blue]
> etc user that one or the other will work. I think I recall that you[/color]
have to[color=blue]
> use different properties to determine the window width and height,[/color]
but it's[color=blue]
> been too long ago for me to remember clearly.
>
> I will have a timer to move the object and it will disappear when it[/color]
reaches[color=blue]
> the end of the page. I might even have a chase between two pictures[/color]
so I'd[color=blue]
> need multiple variables.
>
> Any ideas?
>
> TIA, Lee[/color]

IE vs. NS was years ago, things have changed. Take a look here:

http://www.dyn-web.com/dhtml/

....and view source to get an idea what's involved. It's a bit more
involved than simply knowing the appropriate property names (not trying
to discourage you).

Lee David
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Moving photos


Thanks for the pointer. I'm on my way there right now. Appreciate the
help.

Lee


Closed Thread