dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: javascript, php images colliding

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    36

    javascript, php images colliding

    hello,

    I have two images... and they're both moving towards each other...
    when they collide I wan't it to do a function, or a php function...
    and I want it right when they touch... not when they're in the same position...

    thanks.

  2. #2
    Join Date
    May 2007
    Posts
    129
    you will have to work out the positions of the elements on the page, and calculate when the images hit each other. Then you can call your function.

  3. #3
    Join Date
    Aug 2008
    Posts
    36
    k thanks
    ...could you show me an example?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles