blinks Posted April 13, 2009 Share Posted April 13, 2009 As a raw beginner to PHP, I'd appreciate it if someone could start me off with some code that will move an image x number of pixels when an arrow key is pressed. That is, move the image 10 pixels up when the up arrow is pressed, 10 pixels left when the left arrow is pressed, etc. Thanks! Link to comment https://forums.phpfreaks.com/topic/153801-moving-image-with-arrow-keys/ Share on other sites More sharing options...
.josh Posted April 13, 2009 Share Posted April 13, 2009 Can't do that with php. You would need to use a client-side language like javascript. Link to comment https://forums.phpfreaks.com/topic/153801-moving-image-with-arrow-keys/#findComment-808317 Share on other sites More sharing options...
blinks Posted April 13, 2009 Author Share Posted April 13, 2009 Can't do that with php. You would need to use a client-side language like javascript. Thanks CV, amazingly quick response. Will give Javascript a go. Because of the browser issues with JS, I thought PHP would be easier. Looks like not, after all. Link to comment https://forums.phpfreaks.com/topic/153801-moving-image-with-arrow-keys/#findComment-808326 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.