简体   繁体   中英

jQuery code works in jsFiddle but not on my site

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.)

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

        $('.right_slot').animate({
            opacity: 0,
            left: '+=50px'
        }, 300);
    }​
</script> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM