Plug-in JavaScript Chapter 10, Example 78 (Click on the icon to view the source for copy and pasting)
» Run this code now (Right click and select Back to return from the example)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>Plug-in JavaScript: Example 78</title>

<script src="PJ.js"></script>
<script>Initialize()</script>

</head><body>

<button id='link' type='button'>Click Me</button>

<p align='justify'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

<div id='show'></div>

<script>

window.onload = function()
{
   Resize('show', 320, 240)
   Hide('show')
   photos = Array('photo1.jpg', 'photo2.jpg',
      'photo3.jpg', 'photo4.jpg', 'photo5.jpg')

   O('link').onclick = function()
   {
      Slideshow('show', photos, 500, 2000)
      Lightbox('show', '#888888', '000000', 80, 500, 1)
   }
}

</script>