View Single Post

Member Since: Jan 17, 2008
Posts: 16
FinnIII is on a distinguished road
Mac Specs: MacBook Pro: 2.16 GHz 2GB ram

FinnIII is offline
I have found a code that changes the background image of a page. Is it possible to adapt it to change an image on the page?

<script language="JavaScript">

// Copyright 2001 by
// Please do *not* remove this notice.

var backImage = new Array();

backImage[0] = "../gallery_pages/images/stupid/full-32 King Stupid Main Set.JPG";
backImage[1] = "../gallery_pages/images/stupid/full-33 King Stupid Control Desk.jpg";
backImage[2] = "../gallery_pages/images/stupid/full-34 King Stupid Main Set Rev..JPG";

function changeBGImage(whichImage){
if (document.body){
document.body.background = backImage[whichImage];

Can you help?
QUOTE Thanks