This is how the no-right-click script would look if you broke it apart into individual lines again.
I've put a star on the lines with errors or other problems.
The first star isn't really an error and it won't affect the script.
I know I said that you should escape all "s and 's with slashes.
If you use "s around the s3 string like you did, any "s inside the code will cause the browser to
throw an error. This happens because it thinks the s3 string has ended and the rest of the line is garbage, unless
you put a slash before the other "s inside the s3 string to tell the browser they are part of the string.
The same goes for 's.
However, if you use only 's inside a string eclosed in "s there won't be an error because the browser knows the string
has not ended, it hasn't encountered the closing " yet. It works the other way around too of course.
But, if you need to nest "s and 's you'll get troubles unless you tell the browser to ignore the "s and 's by
putting slashes in front of them. Keeping track of nested "s and 's is a whole science lol.
With all that said, I'm sorry I tricked you into placing those slashed in there since they are not really needed in this script.
Back to the stars...
The second problem will cause an error. I think whoever made the script wanted the user to place an alertbox or something on
this row so that the visitor will know right-clicking is disabled.
The same thing goes for the third star, but this time it's for Netscape users.
Either completely remove those lines, or replace them with something like this: alert('No right clicking here!');
The fourth star marks the same 'problem' as the first one.
The last line should be like this: </scr"+"ipt>
Maybe I was a bit unclear there too, all you need is to break the s3 string into two and add them together to make the
browser ignore the closing </script> tag. I've noticed that this isn't always neccessary but I always do it just to be sure.
Here's the whole s3 string:
I think that was all that needed to be done. Hope it works and Merry Christmas!
