stuck on this Javascript problem, anyone?

QueBert

Lifer
Jan 6, 2002
22,932
1,129
126
I'm trying to add some JavaScript to a web page. The page has multipul JS elements throughout it. And in this one section I'm having problems. Here is the code I added

<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<script language="JavaScript" src="overlib.js"><!-- overLIB (c) Erik Bosrup --></script>
- I put this directly after the <BODY> tag.

real basic, and since the part I want to use it on is in a <DIV> I changed div here to match the <DIV> in my html.


the <DIV> has no other code in it besides standard HTML, it is part of the CSS layout thought.

I changed the <a href> tag to this

<!-- overLIB (c) Erik Bosrup --></script> <div align="left"><a href="javascript:void(0);" onmouseover="return overlib('Different font.', TEXTFONT, 'Courier, Courier New');" onmouseout="return nd();">My link</a>



The JS works fine on a clean page, but this one has a ton of CSS, and I'm not a CSS expert. So something here is my problem. Any web gods have a suggestion on what my dumb ass is or isn't doing here? I am baffled. this should be so simple too :(