PDA

View Full Version : quick question



rehni
June 11th, 2003, 20:06
What does it mean when you see <!--blah--> in a website script?

CareBear
June 11th, 2003, 20:14
anything in between <!-- --> is an html comment.. it can be used as a placeholder for programs that help in designing a site, or to hide scripts from non script-able browsers or just to leave a reminder for yourself.

bloodyveins
June 12th, 2003, 10:46
<!-- This is a place where you can claim your scripts before other people who download them, delete them and claim as their own
-->

:(

CareBear
June 12th, 2003, 15:08
Originally posted by bloodyveins
<!-- This is a place where you can claim your scripts before other people who download them, delete them and claim as their own
-->
:( You can always put your code in a seperate .js file.. most people will be too lazy to bother open it seperatly or code two versions. One with comments and meaningful variable/function names and then search/replace and change them into meaningless names.
People who copy stuff are looking for an easy way to do something, they're not interested in spending an hour going through the loop of a script to figure out how it all ties together.

bloodyveins
June 13th, 2003, 23:56
i agree with u. however, if we want people to analyze the codes and its algorithm, we should not replace them with fake ones. (a risky one, though. those hackers will find the holes and start attacking the sites)