1. Home
  2. Computing & Technology
  3. JavaScript

Cryptogram Script

4. Alternate Head Script

clr gif

Here is the version of the script that simply updates the cryptogram in place without reloading the page.

To obtain this version of the second script simply copy and save the following code as crypthead.js.

You then link the scripts into the head of your page using the following code (don't forget to change the name of the first script if you saved your array script to a different name):

<script src="cryptoarray.js" type="text/javascript">
</script>
<script src="cryptohead.js" type="text/javascript">
</script>
<link rel="stylesheet" type="text/css" href="crypto.css" />

As you can see, we have included code to link in a stylesheet. We had better get the cryptogram stylesheet next.

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.