/    Sign up×
Community /Pin to ProfileBookmark

Use an image as a function button?

Yes, I´m a noob with javascript but I´m learning……
The thing I wondering abou know is how you do a function button with an image. I know this way: <INPUT TYPE = Button onClick “function()”;>
But with this I get a boring default button. What I want is an image of my own used as a button. The reason for this is that the image will be a house or something and after you´ve clicked it you then choose were to put the house on a grass field.

Another question….When you click the image button with a house I need to store it so it pop ups at the grassfield. Could need help with how I store the picture, after you´ve clicked it, in the function

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@FreddeauthorJan 29.2003 — Thanks, I got what I wanted. Most of the code was just ?????? to me but I understod the part I wanted to know so thank you
×

Success!

Help @Fredde 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...