Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Function works in IE but not in NS??

Status
Not open for further replies.

Boblevien

Technical User
Nov 3, 2000
38
GB

The following works just fine in both IE and NS:

<A href=&quot;#&quot;
onMouseOver=&quot; document.circles.src=nav2.src&quot;
<IMG border=0 class=nav height=79 name=circles src=&quot;images/nav1.gif&quot; width=80>
</A>

BUT when I try to use a function it only works in IE:

function navigate() {
document.circles.src=nav2.src;
}

<A href=&quot;#&quot;
onMouseOver=&quot; navigate()&quot;
<IMG border=0 class=nav height=79 name=circles src=&quot;images/nav1.gif&quot; width=80>
</A>

What’s wrong?

Bob Levien
 
I don't have seen an image called &quot;nav2&quot; in your code ; instead of that, 2 pictures have the same name. Maybe is there your problem ?
In the other hand, maybe can you write in your navigate function :

document.circles.src = document.nav2.src;

(I've already noticed that IE doesn't need the &quot;document.&quot;, but Netscape, yes).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top