1. Computing & Technology

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.

©2012 About.com. All rights reserved.

A part of The New York Times Company.