[thelist] Dual Flip mouseovers not working

Joshua OIson joshua at alphashop.net
Tue Jan 30 09:30:31 CST 2001

This may help,

to the imageChange function you are passing "heading" as the first
parameter(imageID), yet there seems to be no image with the id="heading"
anywhere in your document.  Therefore, document.images[imageID].src will
fail.  Check all your id's of the images against the parameters you may pass
into that function.

Additionally, you can add code to the function to help is gracefully handle
invalid objects.  The code will help itself be debugged if you recode it as

function imageChange(imageID,imageName,imageID2,imageName2) {
  if (document.images[imageID]) document.images[imageID].src =
    eval(imageName + ".src");
    else alert('Image '+imageID+' not found);
  if (document.images[imageID2]) document.images[imageID2].src =
    eval(imageName + ".src");
    else alert('Image '+imageID2+' not found);

Hope that helps.


----- Original Message -----
From: "Rachell Coe" <rachell at coeville.com>
To: <thelist at lists.evolt.org>
Sent: Monday, January 29, 2001 8:43 PM
Subject: [thelist] Dual Flip mouseovers not working

> Hi All!
> I have just finished hand coding this web page using JavaScript, and
> figure out why I am getting errors.  I have made this JavaScript work
> before on other Web pages, and have looked over the code as best I could
> and could not see any reason why the coding on this page is not
> working.  Could any of you please check out this page and see if you can
> see what the problem is?  Its at:
> http://www.coeville.com/galaxyglass/designshell1.html?
> I would really appreciate any help you can give me on this.
> Thanks in advance,
> Rachell Coe

More information about the thelist mailing list