Gaming Place image upon mouse click

  • Thread starter Deleted_171835
  • Start date
  • Views 695
  • Replies 2
D

Deleted_171835

Guest
OP
Does anyone know how I would make an image be placed automatically upon a mouse click (using Javascript)?

As in, a users mouse click would place a pre-defined image (i.e, user clicks right side of page, image is placed there).

Thanks!
yay.gif
 
D

Deleted_171835

Guest
OP
Thanks to some awesome guy at Stack Overflow, I got some assistance with the script. Now I need some help adding a .click() handler. The code I got so far is,
CODE
ÂÂ
ÂÂÂÂ
ÂÂÂÂ
ÂÂÂÂ

ÂÂ

ÂÂ
LDRYh.jpg
.click()
ÂÂ

The thing is that I don't know how to add a .click() handler to an image. I want it so that if the image is clicked, it'll perform the event mentioned in the script, which is to place an image.

And if you guys can't help with this one, I'll just go back to stackoverflow. :X

Edit:
Lovely, ain't it?
http://stackoverflow.com/questions/7374562...ent-to-an-image
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    fluff663 @ fluff663: hoi