WebworkSingle Random Image on Reload

Reload/refresh the page to reload a random image.
<html>
<head>
<title>Single Random Image</title>

<script language="javascript">
<!-- // begin
random.m=714025; random.a=4096; random.c=150889;
random.seed = (new Date()).getTime()%random.m;
function random()
{random.seed = (random.seed*random.a + random.c) % random.m;
  return random.seed / random.m;
}

function randomizeimages()
{randomizeimage('image1', 4, '', '.jpg');
}

function randomizeimage(img, count, base, type)
{whichone = Math.round(random() * (count - 1)) + 1;
  document.images[img].src = base + whichone + type;
}
// end hiding -->
</script>

</head>
<body bgcolor="#ffffff" onload="randomizeimages()">

<p align="center">
<img name="image1" src="pixel.gif" height="90" width="120">
</p>

</body>
</html>


Javascript | Webwork Table of Contents
 
 © Jay Boersma
free stuff
GIFs 4 Us
The Web Rules
Webpix
Backgrounds 4 Us
Webpaper
Digital Sketches 1
Digital Sketches 2
Fonts
Sounds
archive
The Portals Project
Transition
Insights
Spelling
Webwork
photographs
Barcelona, Catalonia/Spain
Along the Mississippi
Rome and Florence
The Reliance Building
Providence, Rhode Island
Santa Fe, New Mexico
Charleston, South Carolina
hell
The Web
Page from
ape silverback
Primate
Ruminations
rotmp
Revenge
of the
Movie
Poster
element-j
Honda
Element
Site