Quote:
Originally Posted by Radnor
Granted JS is CLIENT side, not SERVER side. But, why cant you have in a JS file:
Code:
<html>
<head>
<title>V7N</title>
</head>
<body>
<script src="links.js" language="javascript" type="text/javascript"></script>
</body>
</html>
Code:
document.write("<a href='link1.htm'>Link 1</a><br />");
document.write("<a href='link2.htm'>Link 2</a><br />");
document.write("<a href='link3.htm'>Link 3</a><br />");
From here you will need the
Code:
<script src="links.js" language="javascript" type="text/javascript"></script>
in every page's nav section
Edit "links.js" as needed....
|
Cool, I must have misunderstood the requirement.
I thought you wanted to accept an input from the user that would write the links to a file. If you've already got the links than this or the include(name.htm) above will work as well.