• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 156
  • Last Modified:

A problem with javascript.

The top rollover works, the bottom rollover changes the top rollover. I have tried changing the syntax several times. can anyone help it is prob very simple.


<a href="MID.html#instruction" target="MID" onmouseover="image1.src='in1.jpg';"
onmouseout="image1.src='in2.jpg';">
<img name="image1" src="in2.jpg"></a>

<BR><BR><BR><BR>

<a href="project.asp" target="MID" onmouseover="image1.src='track1.jpg';"
onmouseout="image2.src='track2.jpg';">
<img name="image2" src="track2.jpg"></a>
0
lukegriffiths110
Asked:
lukegriffiths110
  • 4
1 Solution
 
GwynforWebCommented:
<a href="MID.html#instruction" target="MID" onmouseover="image1.src='in1.jpg';"
onmouseout="image1.src='in2.jpg';">
<img name="image1" src="in2.jpg"></a>

<BR><BR><BR><BR>

<a href="project.asp" target="MID" onmouseover="image2.src='track1.jpg';"
onmouseout="image2.src='track2.jpg';">
<img name="image2" src="track2.jpg"></a>
0
 
GwynforWebCommented:
I would also recommend using the full DOM adresses document.image1.src and document.image2.src  to avoid browser compatibilty problems
0
 
GwynforWebCommented:
thx for the points, :-)
0
 
GwynforWebCommented:
I wondered why I had lost 1000 points from my total.  
0
 
RomModCommented:
Sorry, GwynforWeb. I hate to do that to you, but you know the rules. Thanks for your understanding.
-Rom
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now