JavaScript

  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

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

JavaScript

  1. Home
  2. Computing & Technology
  3. JavaScript

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

All rights reserved.