cowlark.com

[Home] [Index] [About] [Mail me]


Contents
1. NearSited
2. Download
3. How To Do Links
4. Headers
5. Substitutions
6. ns-render
7. ns-index
8. ns-getkeywords

Links in this document
[TXT]Test file

How To Do Links

NearSited has this really nifty feature for doing links. Look at this:

[TXT]Test file (12 bytes)
This is a test file. Click on it if you like, it doesn't do much.

Notice that you also get a 'Links' pane on the left for quick reference.

The following code fragment was used to generate the link.

@@@LINK@@@ 
Icon: text
Datafile: test.txt
Size: yes
Title: Test file

This is a test file. Click on it if you like, it doesn't do much.
>

The following headers are understood by ns-render when generating HTML.

Datafile
Tells ns-render that the link points to a local file. Conflicts with URL. The file needs to be in the page's .dat directory.
Icon
Specifies the icon you want the link to have.

You can use one of binary ([BIN]); text ([TXT]); link ([TXT]); or image ([IMG]). Alternatively, you can specify the path to your own icon, but you must put the width and height afterwards, seperated by spaces.

Size
Specifies whether you want the size of the file to be appended to the link name, as in the example. Only works if you use Datafile.
URL
Tells ns-render that the link points to an arbitrary URL, which is specified.

The link description goes after the headers, seperated by the usual blank line. It is terminated by a > by itself. The description is optional; this allows you to have several links in a row with the same description. See my GEOS software page for an example.


All material © 2000-2002 David Given, unless where stated otherwise.
This page last updated on 2002-09-18 23:04:59.000000000 +0100 nearsited/links.ns .