View Single Post
Old 01-23-2007, 01:58 PM   #10 (permalink)
digiweb
v7n Mentor
 
digiweb's Avatar
 
Join Date: 04-07-06
Location: Manchester, NH
Posts: 722
iTrader: 1 / 100%
digiweb is a glorious beacon of lightdigiweb is a glorious beacon of lightdigiweb is a glorious beacon of lightdigiweb is a glorious beacon of lightdigiweb is a glorious beacon of lightdigiweb is a glorious beacon of lightdigiweb is a glorious beacon of lightdigiweb is a glorious beacon of lightdigiweb is a glorious beacon of lightdigiweb is a glorious beacon of lightdigiweb is a glorious beacon of light
Send a message via Yahoo to digiweb Send a message via Skype™ to digiweb
Quote:
Originally Posted by Radnor View Post
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.
digiweb is offline   Reply With Quote