Re: addendum to graphics and javascript

by "Donna M Smillie" <dms(at)zetnet.co.uk>

 Date:  Tue, 1 Feb 2000 00:39:56 -0000
 To:  "Jennifer C. Swartz" <eandscon(at)javanet.com>,
"HWG Graphics List" <hwg-graphics(at)hwg.org>
 References:  jcs
  todo: View Thread, Original
Hi Jennifer

In your Javascript function you need to change the reference number of the
image to be changed from "0" to "1" so that it reads:

function changeImg(url) {
 document.images[1].src=url
}

Images in the document.images[] array are entered in the order they appear
in the document, and the menu GIF is the second IMG to appear in the
document, so it's number 1.  The title image is number 0.

(By the way, "face6.gif" needs to be cropped - it's a lot wider than the
others).

HTH!

Regards,
Donna
--
dms(at)zetnet.co.uk
Different Worlds:  http://www.users.zetnet.co.uk/dms/
Pictures of the Past, The Leslie Smith Family,
An Introduction to HTML, Copyright Considerations
Online Bookshop

----- Original Message -----
From: Jennifer C. Swartz <eandscon(at)javanet.com>

> The way the script is supposed to work is that at the bottom of the menu
on
> the left side of the page, in the large box you are supposed to get text
> when you mouseover on a word in the list.  For some reason it is putting
> these words in replacement of the graphic you see at the top of the page
as
> soon as you mouseover...
> again the address is http://users.javanet.com/~eandscon/Biology3/

HWG: hwg-graphics mailing list archives, maintained by Webmasters @ IWA