JavaScript – Copyright Updater

Version: 13.2
Revision: 43 Build 19

JavaScript – Copyright Updater

Introduction:
after reading and working with JavaScript, I was trying to create an automatic “Copyright” updater for the public. This script wasn’t long, but it will let others know that your articles were written by you and you are the owner of this written material.

1.] Download notepad++ from the original author or from another source.
——————————-

http://sourceforge.net/projects/notepad-plus/

http://filehippo.com/download_notepad/

——————————-

2.] Copy this ‘JavaScript’ source code and save it as a “.js” extension.

File: javascript-file.js
—Copy Source Code—

document.write('©' );
document.write('  2004 - ');
document.write(new Date().getFullYear());
document.write(' <website name> - All Rights Reserved.');

—End Source Code—

Notes: you’ll need to change the default year (2004) and “” with your own.

3.] Import this Javascript file into your html / php file, with this ‘import’ function.

—Copy Source Code—

<font color="#F8F8FF">
<!-- Begin Copyright Code -->
<script type="text/javascript" language="Javascript" src="javascript-file.js" /></script>
<!-- End Copyright Code -->
</font>

—End Source Code—

Notes: you’ll need to replace “javascript-file.js” with your own (saved) file.
Also, if you have a white background, you’ll will need to change your “fonts” color into another colour, so that the other users could see your copyright notices!

4.] Now, save your progress and check your website!

Notes: if you want to add this “JScript” into a single ‘html’ file, you can use this alternative method…

—Copy Source Code—

<font color="#F8F8FF">
<script type="text/javascript" language="JavaScript">
<!--
document.write('&copy;' );
document.write('  2004 - ');
document.write(new Date().getFullYear());
document.write(' <website name> - All Rights Reserved.');
//-->
</script></font>

—End Source Code—

5.] Done!

Comments are closed.