/    Sign up×
Community /Pin to ProfileBookmark

moving img’s wit arrow keys!!

Is there any way that i can move an image using the left/right
arrows so the image moves left when you press left and right when you press right.
Also it is used with Marquee too, so it can go either let/right with the arrows and forward automatically.
Codes appreciated!
Thanks

?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliMay 04.2004 — something like this might work?

[url=http://www.webapplikations.com/pages/html_js/document/MoveObjectWithArrowKey.html]Resource here[/url]
Copy linkTweet thisAlerts:
@scottymacMay 04.2004 — nhey khalid, i think the page would look better if one could not scroll, since ht eup and down keys scroll up and down, with a huge gap at da bottom
Copy linkTweet thisAlerts:
@chrizauthorMay 05.2004 — Hay, thanks Kahlid, but i am making a small javascript game and what happens is this:

Marquee moves an image up-screen automatically (I have a variable that controls the speed)

I just need to know (With a code preferably) how to move the image side - to - side with the arrow keys.

Left and right.?

I need to know!!!!?
×

Success!

Help @chriz spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...