0

I know it's usually an encoding error, and in fact the Google Chrome developer debugger gives me the error:

Uncaught SyntaxError: Unexpected token ILLEGAL

But I can't see where this error is occurring. What am I doing wrong here?

Fiddle: http://jsfiddle.net/6fwbS/19/

//User defined variables
var adjacents = 3

//Script variables
var a = 0,
    b, c;
var imgArr = [];

My site: http://digitalbrent.com/lab/

(I've checked the other questions with similar titles but I can't seem to find the problem in my code.)

1 Answer 1

4

On your site, there are some junk characters in the code right before the </script>:

        $('.right_slot').animate({
            opacity: 0,
            left: '+=50px'
        }, 300);
    }​
</script> 
Sign up to request clarification or add additional context in comments.

6 Comments

I've been looking for that because that appeared in another question, but I don't see that anywhere in my code or in my debuggers... where did you see that? What were you using?
Firebug 1.9.1 with Firefox 11.
Could they be byte-order-markers (BOM) from any UTF-8 encoded files? Make sure you encode them without the BOM.
@FritsvanCampen how do I do that?
Use an editor that will tell you what the encoding is. Notepad++ does it fairly well (it will tell you the encoding in the bottom left), you can easily change or convert the encoding from the menu at the top.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.