JavaScript Zone

Script Tutorials

Introduction
Pre-requisites
Installation
Notes

ShareCheck

Introduction

This Javascript lets you view shares at one of several stock exchanges. This is achieved by linking to MSN's moneycentral web site.

You click on the "Add" link to enter your company's name, and this will create a link on your web page to that company's share information until you remove that link.

If you are not sure of how to enter your company' s name, use the "Find" link.

Example of this script:


Sharecheck (UK Only)


Add | Find

Pre-requisites

  • none
Installation

  1. Cut and paste the following code to your html page as indicated:

Notes

  • this tutorial demonstrates:
    • how to use cookies to store names
    • how to display lists of items, and delete them
    • how to create dynamic links
  • the code for maintaining cookies is taken from the original date last visited / number of visits javascript from the JavaScript Source - thanks
  • if you use this script, amend the variable names' prefix from pt_ to something meaningful to your site
  • some stock exchange codes are GB, US, FR, IT, JA, CA


Page last updated 15th November 2001