jQuery change image src attribute
问题 Right now I'm trying make some browser based game. But I have little questions. Please open below code and inspect it. http://jsfiddle.net/thisizmonster/YVz6L/4/ Is there any better solutions handle keyboard inputs? While moving, i'm changing image with Running soldier. But as you can see my soldier not running, but after stopped press key, it will start run. Why its happening? 回答1: 1) I wonder whether it would be better to only move your character on keydown and stop him on keyup. You'd have