Hi there Evilzone members. I think this is pertty simple way to protect your copyright text on web page from people who often download page and change copyright. I must add that the code itself is very simple and if someone knoe jQuery, he will delete it of course. But, for those who just download templates and change copyright like they did it, I am sure they will never notice this. Anyway here is the code:
HTML:
<html>
<head>
<script src="jquery.js"></script>
</head>
<body>
<p id="copyright">Copyright © Ripper</p>
</body></html>
jQuery code to add in head tag:
<script>
$(document).ready(function() {
var text = $('#copyright').html();
if (text != "Copyright © Evilzone") $('#copyright').html('Copyright © Evilzone');
});
</script>
All it does is checking if variable text (value of that variable is paragraph html) is equal to something we want it to be. If it's not, it's instantly changed to what we wanted from the start. I know it's nothing special, but I wanted to share it with you because it can be interesting.