Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2013
    Location
    Amsterdam
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Rock, Paper, Scissors Pokemon DOM manipulation

    Hi everyone, Im pretty new to Javascript and to this forum... Unfortunatly im stuck on this problem for days,,,

    I made a rock paper scissors game with Pokemon (lol) I want to write the computerChoice, userChoice and the results to the html on click(clickable image). What happens now is that when I click on one of the pokemon it only returns the computerChoice... I cant seem to find the problem.. Help would be very much appreciated My code (html, js + css) is attached to this post.

    Thanks in advance
    Attached Files Attached Files

  • #2
    Regular Coder
    Join Date
    Jul 2011
    Location
    India
    Posts
    496
    Thanks
    3
    Thanked 57 Times in 56 Posts
    Hi,

    I guess, you did not include pokemon2.js file into your HTML file. please include it and try.

    How to start this app?

  • #3
    New Coder
    Join Date
    May 2013
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, please fix it. I would like to try this.

  • #4
    New to the CF scene
    Join Date
    May 2013
    Location
    Amsterdam
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The pokemon2.js is just a version without an onclick response. This one has a prompt to make your choice. If you open the html file.. that should be it


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •