PDA

View Full Version : Top Navigation III +scripts in a separate folder



l0me
08-16-2005, 06:52 AM
Please help me understand, why this code mentioned below does not work. The only thing altered is to change the path to where to find the javascript (they are moved to another folder) and then the menu does not work.

It seems they have to be located in the root, which for me seems very unlogical. Can anyone help me?

<script type="text/javascript" language="javascript" src="js/sniffer.js">

/***********************************************
* Top Navigational Bar III v3.5 (By BrotherCake- brothercake.com)
* Exclusive permission by Dynamicdrive.com to include script in archive
* For this and 100's more DHTML scripts, visit http://www.dynamicdrive.com/
* This notice MUST stay intact for legal use
***********************************************/

</script>

<script type="text/javascript" language="javascript1.2" src="js/custom.js"></script>
<script type="text/javascript" language="javascript1.2" src="js/style.js"></script>

</head>
<body>

<p>&nbsp;</p>


<script type="text/javascript" language="javascript1.2" src="js/menu.js"></script>
</body></html>

tdgboy
01-10-2006, 10:08 PM
Your problem might be that the path js/*.js file is not an absolute desitnation. When I have this trouble, I just go type the entire URL with http://. can't explain why, but it works most of the time. Hope it helps.