Page 1 of 1

Showing and moving small pictures with java

Posted: Sat May 10, 2003 7:42 am
by Zomis
I am working with a little online game about horses.
And in a horse race, I want to display 2-5 (depending on how many horses that are in the race) small pictures and move them some steps horizontally (to the right) each x milliseconds.

the number of steps should be calculated (which I can calculate using normal php code) depending on many factors.


But I do not know very much about java, I have used some javascripts on my page, but never with any pictures...

if anyone can help me, please reply.

Posted: Thu May 15, 2003 2:06 pm
by lostboy
there is a really good book an using javscript to manipulate images in the browser, comes with code called;

Dynamic HTML Web Magic
ISBN: 1-56830-421-8
New Riders Press

probably the best book I have seen on using layers and images

Posted: Fri May 16, 2003 4:12 am
by Gleeb
I think it's best that someone points out how java and javascript are nothing to do with each other.

If you're going to do it in java, it'll need quite a bit of knowledge about Java, or at least more than me (and I recently took a (bad) course in it).

If you're going to do it in Javascript, then I'd go buy the pook in the above post.