JavaScript Zone

Script Tutorials

Introduction
Pre-requisites
Installation

Screen shot of fruit machine

Fruit machine (v 1.1)

Introduction
Downloads

This is my attempt at reproducing an early pub/amusement arcade fruit machine using JavaScript.

Thanks to Daniel Tink for graphics and original concept (?!).

Version 1.1: This has now been amended to feature spinning reels. Note that this script must be used offline for this to work as intended.

Click below to try out the fruit machine.

Fruit machine

Pre-requisites

  • there are no pre-requisistes for this tutorial
Installation

  1. Unload the graphics zip file into your directory
  2. Unload the fruit machine html zip file into your directory
  3. In your calling html page add the following code as indicated:



Page last updated 15th November 2001