1. Home
  2. Computing & Technology
  3. JavaScript

Scripts You Can Copy

You don't need to actually learn JavaScript before you can start using it. There are hundreds of JavaScripts that I have written that you may copy and install onto your own site. Each comes with step by step instructions.

Things to Note

Stephen's JavaScript Blog

JavaScript Encryption

Saturday December 5, 2009
Many of the more knowledgeable JavaScript programmers claim that truly hiding your page source so that only those with the right password can access your page is impossible but they are wrong. While almost all attempts to hide the password can either be reverse engineered or bypassed within a few minutes if not sooner, Fritz Schneider proved that this need not always be the case by implementing a version of the Rijndael encryption algorithm in JavaScript. His version is a bit big to use (at 20k) but I have managed to compress his code down to one third the size. While a 6.6k JavaScript is still rather large, it is small enough to make real encryption using just JavaScript possible.

JavaScript Encryption

JavaScript Hashing

Friday December 4, 2009
One way encryption (or hashing) is possible with JavaScript. You can use MD5 or SHA1 encryption, it is just not very useful since your visitors can always modify the JavaScript to bypass it.

JavaScript Hashing

Inline Tooltips

Thursday December 3, 2009
Some people prefer that additional details about a term or link on their web page be displayed inline after the link instead of hovering over the page in its own box. This JavaScript shows and hides the content of a span that follows immediately after the linked text.

Inline Tooltips

Individual Field Validations

Wednesday December 2, 2009
So far in our tutorials on validating forms we have looked at the JavaScript needed to perform different types of validations. What we haven't looked at is how to attach these validations to the form itself. In this tutorial we look at how we can have a field validated as soon as it has been entered.

Individual Field Validations
Explore JavaScript
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.