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!

Problem with Script in Mozilla 1

Status
Not open for further replies.

kelly5518

Technical User
Aug 1, 2005
72
US
Hi,

I was wondering if someone could shed some light on a problem I'm having with a "Description Layer Script" that I found at I'm using it to display definitions for terms found on a page, but the terms don't link to another page, so I just want it to display onMouseOver so I tried to use the following code:

<a href="javascript:void(0)" onMouseOver="popLayer(1)" onMouseOut="hideLayer(-50)">

Unfortunately, although it works fine in IE, it doesn't do anything in Firefox (v. 1.04) or Netscape (v. 7.02) (no errors, it just doesn't display the definition layer.)

Thanks in advance for any suggestions.
 
Thank you Jeff.

I just assumed that the problem was because I changed some of the script in the anchor tag so that I could use the tooltip on mouseover and not have the link go anywhere, but now I see that the original script didn't work in Netscape or Firefox either, although I didn't get any errors, so maybe the default setting in Firefox and Netscape is to not display errors.

Anyway, I'm working on using the one you suggested, so thanks for the link. I'll let you know how it works out.
 
Ok, I have it working except I'm having trouble customizing the colors. Nothing I do in the script (changing the variable "ol_bgcolor") or using inline styles applied to the overDiv id seems to affect it.

Thanks for any tips.
 
Hi,

Yeah, I saw that, but I really wanted to set the defaults because it's being used for a bunch of legal terms on a bunch of different pages, and I don't want to have to code each link like that.

I must be missing something because it says on #7 here:


... that you can change the defaults in overlib.js under the Default Configuration setting. That's where I tried changing the variable "ol_bgcolor", but it didn't affect anything.
 
I figured it out. :-\ I had specified white as the background color for all tables since the page background wasn't white. This caused the overlib popup to be white even though I changed the default color for ol_fgcolor in the script.

Anyway, thanks very much for your time Jeff, and for pointing to me the script in the first place.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top