JavaScript Zone

Script Tutorials

Introduction
Pre-requisites
Installation
Notes

News Ticker

Introduction

This Javascript lets you run a "news ticker" on your home page. The beauty of this script is its small size.

Within the script, you maintain links to the 5 most-recently updated pages on your site. This script then displays each news item in turn in news ticker fashion, leaving it on screen for a few seconds before showing the next item.

Example of this script:

Thompp News Ticker

Pre-requisites

  • none
Installation

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

Notes

  • this tutorial demonstrates:
    • how to Dynamic HTML (DHTML) and the "span" tag to dynamically update web pages
    • use of setTimeout() function to perform timed functions
    • how to create dynamic links


Page last updated 24th November 2001