Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] function not defined only in Netscape 6


  • From: javascript@xxxxxxxxxx (Miss Amy)
  • Subject: [Javascript] function not defined only in Netscape 6
  • Date: Fri, 16 Aug 2002 13:04:05 -0700 (PDT)

Hey there. I've got a little script that when you mouseover a
person's name, it changes the picture and description of that
person.Runs great in IE 5+, and even in NN4, but just will not work
in NN6.Javascript console only tells me : "flip is not defined"

Any ideas?

Below is the function and here is an example of when it is
called:ONMOUSEOVER="flip(0)">Marlow Anderson

#######
function flip(personNum)
{
if(document.layers)
{
//thisbrowser="NN4";

document.FacultyLayer.document["FacImage"].src=personimage[personNum].src;


document.FacultyLayer.document.InfoForm["FacInfo"].value=persontext[personNum];
}

if(document.all)
{
//thisbrowser="ie"

document.FacImage.src=personimage[personNum].src; 

document.InfoForm.FacInfo.value=persontext[personNum]; 
}
if(!document.all && document.getElementById)
{
//thisbrowser="NN6";

document.getElementByName("FacImage").src=personimage[personNum].src;
document.getElementByName("FacInfo").value=persontext[personNum]; 
}
}
#######

Thanks,Amy

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com