JavaBamF Posted March 7, 2007 Share Posted March 7, 2007 Hey im fairly new to PHP and i was wondering how to make a ball bounce up and down in a web browser using PHP.. through a html div with and image included in it... any help or comments is much appreciated thanks <?php include('header.html'); include('body.html'); ?> <div style = "margin-top:100px;"> <div style="position: relative; left: 25px; top:7.0px;"> <img src="images/rotation" alt="Look at me!!" /> </div> </div> </body> Link to comment https://forums.phpfreaks.com/topic/41549-bouncing-ball-with-php/ Share on other sites More sharing options...
SammyGunnz Posted March 7, 2007 Share Posted March 7, 2007 You can use PHP for displaying the images...but not for animating them. Look into Flash, Javascript, and possibly some Ajax. (Of course all can be incorporated into your PHP) Link to comment https://forums.phpfreaks.com/topic/41549-bouncing-ball-with-php/#findComment-201333 Share on other sites More sharing options...
JavaBamF Posted March 7, 2007 Author Share Posted March 7, 2007 im not trying to alter the image im just trying to make it move up and down on the page.. very simple through the division Link to comment https://forums.phpfreaks.com/topic/41549-bouncing-ball-with-php/#findComment-201335 Share on other sites More sharing options...
JavaBamF Posted March 7, 2007 Author Share Posted March 7, 2007 im sorry for not clarifying but im gonna use this to refresh the page so that the php function will cycle the image up and down <meta http-equiv="refresh" content="1,index.php?t=<?php print $t; ?>"> i know its really stupid doin it this way Link to comment https://forums.phpfreaks.com/topic/41549-bouncing-ball-with-php/#findComment-201340 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.