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!

A tough one - DHTML "onmouseout" sticks in NN 4.75

Status
Not open for further replies.

leadman

Programmer
Jun 11, 2001
177
US
Hi all - Here is my latest Netscape puzzle :)

If you go to

you will four tabs to the left of the big cicle entitled "tab one text goes here", tab two text goes here", etc. When you rollover the tabs, the cirlcle in the middle changes to reveal the picture that goes with the particular tab (the rollover is making the corresponding circle layer visible). On rollout, the original circle is displayed (the revealed circle is made transparant again). This works fine in MSIE but in NN (im testing with 4.75) the second tab stays on even upon rollout - can anyone see why?
 
onMouseOver="src='images/tabdevotionals2.gif'";
onMouseOut="src='images/tabdevotionals1.gif'"

Can you rid the single quote? I typically give the image a name like image1 then do the following:
<img src=&quot;image.gif&quot; onMouseover=&quot;image1.src=image1On.src&quot; onMouseout=&quot;image1.src=image1Off.src&quot;>

other image to swap get the name you call

<image src=&quot;image2.src&quot; name=&quot;image1&quot;>

This is the image1.src to change to image1On.src during mouseover.

Never had a problem in the older browser. DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
My first guess would be the single quotes, but you did use them with other images and they seemed to work fine. I would really look at the line of code that operates that rollover my guess is it's something in that line. It did stick in Netscape 4.78 as well.

Another tip, which I am going to keep in mind myself. Is the use of comments in our code. Would help a lot when trying to find an error. I would be curious as to what you find out. Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top