Posted Thursday, September 30, 2004
Have you ever joined a new affiliate program or created a new publication that you wanted to add to your existing navigational set up, but dreaded having to manually add the links to every page on your site?
The first line of your new file will look like this:
Here's how your code might look:
document.writeln('<TABLE BORDER="0" ALIGN="Center">');
document.writeln('Your table content');
Each backslash (\) should be preceded with another backslash.
Each apostrophe (') should be preceded with a backslash.
Next, you'll need to create a new directory on your server where you store your HTML files. Name this directory "content" (without the quotes) and upload your new .js file in ASCII.
Here's where the magic occurs... Place the following code in your HTML pages where you would like your navigate.js content to be displayed. Make sure you change the URL and direct it to your new .js file. The following code must be displayed exactly as it appears. Make sure there are no spaces after the first line of code.
If you've followed the above steps correctly, your navigational system should now be displaying on your web page. If you are receiving a script error message, most of the time, it's due to an extra space at the end of a line or an extra or missing character. Make sure you go over your code very carefully. Once you've created your content feed and it is displaying your content, updating your file will be simple.
About the Author:
Shelley Lowery is the Webmistress of Web Source - Your Guide to Professional Website Design and Development. Join The Syndicator, our new, free article syndication program and display complete articles w/photographs on your website that are automatically updated each week. (http://www.web-source.net)