i have a small java script menu i wish to display at the top of some web pages
the code used is:
at the minute im just trying to get the damn thing to display in my perl file i have:Code:<html>
<head>
<title>Tigra Menu Test</title>
<script language="JavaScript" src="menu.js"></script>
<script language="JavaScript" src="menu_items.js"></script>
<script language="JavaScript" src="menu_tpl.js"></script>
<link rel="stylesheet" href="menu.css">
</head>
<body>
<script language="JavaScript">
new menu (MENU_ITEMS, MENU_TPL);
</script>
</body>
</html>
it is compiling okay and displaying the "TEST TEXT" part when i view the source the info on the java script is displayed:Code:
#! c:/perl/bin/perl
use CGI ':standard';
print "Content-type: text/html\n\n";
print <<FOO;
<html>
<head>
<title>Tigra Menu Test</title>
<script language="JavaScript" src="menu.js"></script>
<script language="JavaScript" src="menu_items.js"></script>
<script language="JavaScript" src="menu_tpl.js"></script>
<link rel="stylesheet" href="menu.css">
</head>
<body>
<script language="JavaScript">
new menu (MENU_ITEMS, MENU_TPL);
</script>
TEST TEXT
</body>
</html>
FOO
PAge source:
now the javascript menu makes use of a few other files that need to be in the same directory, i have placed these in the htdocs and the cgi-bin thinking that the menu is not displaying as these cant be found but its still not workingCode:<html>
<head>
<title>Tigra Menu Test</title>
<script language="JavaScript" src="menu.js"></script>
<script language="JavaScript" src="menu_items.js"></script>
<script language="JavaScript" src="menu_tpl.js"></script>
<link rel="stylesheet" href="menu.css">
</head>
<body>
<script language="JavaScript">
new menu (MENU_ITEMS, MENU_TPL);
</script>
assssssssasddddddddddddddddddddddasdasd
</body>
</html>
Thanks
Antonio
