hwg-languages archives | Apr 2000 | new search | results | previous | next |
Funky JavaScript Problemsby "Angi Diefenbach" <ADIEFENBACH(at)novell.com> |
|
Hi all, I'm fairly new to this list--I'm quite familiar with HTML, but I'm new to = scripting and I'm struggling with a script I've downloaded. The script = creates a navbar that pops up menus for each item on the mouseover even. = If there are any HTML tags between the <body> tag and the 4 <script> tags = used to create the navbar, it doesn't function properly. For instance, in = IE, I can scroll through only the first couple of menu items before the = pop-up menu disappears! Am I missing something obvious?=20 So I'm attempting to include the navbar at the top of the page. However, = due to some differences in the way NN and IE display the navbar, I'd like = to include a <div> tag to place the navbar in the top left corner of the = window (for NN only). I'm using the code included below. The 4 JS scripts = between the 2 scripts that add the <div> tags isn't recognized, but if I = replace it with another other HTML code, I don't have any problems. Let me = know if this doesn't make sense.=20 Ideas, anyone?=20 Thanks! Angi <script language=3D"JavaScript"> bName =3D navigator.appName; if (bName =3D=3D "Netscape") { document.write("<div style=3D'position:absolute; left:0; top:0'>"); } </script> <script language=3D'JavaScript' src=3D'menu.js' type=3D'text/javascript'></= script> <script language=3D'JavaScript' src=3D'menucontext.js' type=3D'text/javascr= ipt'></script> <script language=3D'JavaScript' type=3D'text/javascript'> showToolbar(); </script> <script language=3D'JavaScript' type=3D'text/javascript'> function UpdateIt(){ if (document.all){ document.all['MainTable'].style.top =3D document.body.scrollTop; setTimeout('UpdateIt()', 200); } } UpdateIt(); </script> <script language=3D"JavaScript"> bName =3D navigator.appName; if (bName =3D=3D "Netscape") { document.write("</div>"); } </script>
HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA