[Javascript] Re: Running two scripts on the same page
Steve Blades
cutterbl at hotmail.com
Wed Jun 27 07:42:08 CDT 2001
Do you have this problem only in Netscape, or in both NN and IE?
I have attempted to combine script use of the latest hierarchal menu (at
www.dhtml.com) and a script to make a static menu. I have it working fine in
IE, but it breaks in NN. I've used alert boxes to try and track the
breakage, step-by-step, one at a time, through different areas of the 3
separate scripts (in my static script right as it calls the HM_Loader.js, in
the HM_Loader.js where it calls the browser specific file, and the browser
specific file), but I have not figured it out just yet.
The Hierarchal Script is fairly intense, especially for a novice like me. I
think it may be in relation to Style Tags, or possible conflicting Styles
between the static script and the hier menu script. The Hier Menu scripts
are set up for good cross browser compliance, which is why I think it may be
in conflicting style calls (NN has very poor style compliance).
Maybe your issue is along the same lines. Try to step through with an alert
to debug and find your break. Hope this helps...
Cutter
************************************
From: phumes1 at home.com
I'm having trouble running multiple scripts on a page.
I have one script being loaded
Menu #1
----------------
<SCRIPT LANGUAGE="JavaScript" SRC="overlib.js">
</SCRIPT>
When you put the mouse over a file/link a dialog pops up showing you the
date/time last modified. File size etc.
<a href="javascript:void(0);"
onMouseOver="overlib('#DateLastModified#<br>File: filename.txt<br>Size:
#Size# bytes', CAPTION, 'Date Last Modified', FGCOLOR, 'white', BGCOLOR,
'3366CC', WIDTH, '180', HEIGHT, 32, RIGHT, ABOVE)"
onMouseOut="nd()">Filename.txt</a>
Menu #2
----------------
I'm also loading the latest version of Hierarchical Menus script
http://www.webreference.com/dhtml/hiermenus/latest/
<a href="javascript:void(0)" title="File"
onMouseOver="popUp('elMenu2',event)" onMouseOut="popDown('elMenu2')"
onClick="return false" class="dirlinks" alt="filename">filename.txt</a>
If I comment out the Javascript for example #1 the menus work otherwise
nothing happens, only the popup for the file information.
How do I get around this?
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
More information about the Javascript
mailing list