Sunday, August 25, 2013

Javascript not seeing functions

Javascript not seeing functions

I'm having trouble with Javascript. The code can be found at
http://pastebin.com/wrY2qLw8 and the website at cookieclicker.herobo.com .
When I open up the website, it hangs on loading. When I open up the
javascript console, it says "Unexpected token <", and when I scroll over
or click on the cookie, it can't find the functions HoverCookie() and
ClickCookie(). The script I am making is based off of cookie clicker,
avaliable at http://orteil.dashnet.org/experiments/cookie/ and their
script works perfectly, and I copied and pasted the code directly. I also
got all of the png files needed to load the game. I have no idea whats
going on. Could anyone help?

No comments:

Post a Comment