Page 1 of 1

Syntax Error in my javascript code

Posted: Tue Jul 13, 2010 3:33 pm
by boba fett
Dreamweaver is tellin me there is a syntax error in this line of my code.

if (event.keyCode > 40 || event.keyCode == <img src="./images/smilies/icon_cool.gif" alt="8)" title="Cool" /> {

Could this be my cause of it not working right???
followed directions and i know what to do with the jquery library but still not workin
(can post full code if needed)

Re: Syntax Error in my javascript code

Posted: Wed Jul 14, 2010 1:54 pm
by Christopher
It looks like it might be a quoting problem. It looks like it might be a quoting problem.It needs to be:

if (event.keyCode > 40 || event.keyCode == "something here") {