Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SyntaxError: Unexpected token

$(document).ready(function() {
    $('div.view-kettha-links div.view-content').hoverscroll
    ({
        width: 225,
        height: 100,
        vertical: true,
        arrows: true,
        arrowsOpacity: 0.7; --> chrome detect as SyntaxError: Unexpected token
    });
});

chrome detect as SyntaxError: Unexpected token but still working,in firefox the function is fine but in IE the function didn't works at all,needs help please.

like image 773
syncrolord Avatar asked Dec 29 '25 06:12

syncrolord


2 Answers

arrowsOpacity: 0.7;
// remove this....^

Assuming it is in your source code and wasn't added by Chrome as part of its error message, remove the semicolon.

like image 134
nnnnnn Avatar answered Dec 30 '25 18:12

nnnnnn


Get rid of the semicolon on that line.

like image 40
Sky Kelsey Avatar answered Dec 30 '25 20:12

Sky Kelsey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!