It's Sean!

UK freelance journalist, author
and writer Sean McManus

Printed from © Sean McManus.
Home > Articles > Webmaster resources > Javascript examples > Javascript Toolkit

The Javascript smart marketing toolkit

Cookies enable you to store a small file on the user's computer. In it, you can include their login details so they don't have to type in their username and password each time they visit, or you can track details about where they go on your site so you can make it easier to use. You can also store information about which adverts they've seen so you can ensure all the adverts get fair exposure.

Your server can't access the information stored in a cookie, though, and it's specific to the browser and machine they're using rather than the user.

Nevertheless, you can use cookies to make your site much smarter.

The Javascript Smart Marketing Toolkit provides routines that will make it easier for webdesigners to build more responsive sites using Javascript. It enables messages to be adapted to each visitor.

The tools fall into three categories: cookie management, time and date tools and banner advert cycling.

One remarkable point to note is that although this code was written in 1999 and we've seen countless browser updates since then, it still works five years later.

Download the toolkit

The toolkit comes as a package of Javascript routines to paste into the HEAD of your HTML documents and is downloaded in a ZIP file. The documentation for the functions is on this website. It is assumed that you're comfortable with the basics of using Javascript - this toolkit isn't suitable for absolute beginners.

Zip file icon
Download the toolkit

Navigating the toolkit:

Related links

Books by Sean McManus

Scratch Programming in Easy Steps

Scratch Programming in Easy Steps

Raspberry Pi For Dummies

Raspberry Pi For Dummies

Learn to program with the Scratch programming language, widely used in schools and colleges.

Set up your Pi, master Linux, learn Scratch and Python, and create your own electronics projects.

Coder Academy

Coder Academy

Cool Scratch Projects in Easy Steps

Cool Scratch Projects in Easy Steps

Learn to make games and other programs in Scratch 2.0, and make a web page in HTML, with this highly interactive book for 7-10 year olds.

Discover how to make 3D games, create mazes, build a drum machine, make a game with cartoon animals and more!

More books

Recommended articles

Stylised coloured photo of a synth

Discover my music and home recording articles

Interested in starting home recording? Follow me as I start recording, using instruments such as the Novation MiniNova and Korg Kaossilator, and share my synth and sample-based music online.

Scratch cat and rainbow circle

10-block demos for Scratch programming

Lots of people of all ages are learning to program with Scratch. Discover some useful tricks and techniques in my 10-block Scratch demos, including special effects you can drop into your games.

Paper Raspberry Pi case

Download free book chapters and more!

Download a free case for your Raspberry Pi, and free chapters from my books about the Raspberry Pi, Scratch, web design and more!

©Sean McManus.