Hi, bailey111. Thanks for your question.
In brief, relative links are links to files and where they are
relative to the current one, whereas absolute links are links that
remain the same no matter what file they are in or where they are.
To make it clearer, here are a few examples.
Notes
Some Directory
A file.txt
Another File.txt
A Different Directory
Something.txt
A Subdirectory
Yet Another File.txt
In this example, the 'Notes' directory is the Notes directory on the
iPod, '.txt' files are the note files themselves, and indentation
means 'is inside of' - for example, 'Yet Another File.txt' is inside
'A Subdirectory', which is inside of 'A Different Directory', which is
in the main 'Notes' directory.
If I wanted to link 'A file.txt' to 'Another file.txt', I could do it
with the following code inside 'A file.txt':
<a href="Another file.txt">a link to another file</a>
I can do this since 'A file.txt' and 'Another file.txt' are in the
same directory. Because the link's reference does not start with
'file:///', it is a relative link.
To link 'Something.txt' to 'Yet Another File.txt', I could put the
following code in Something.txt:
<a href="A Subdirectory/Yet Another File.txt">yet another file</a>
This is a relative link pointing to a file inside another directory.
In this case, the '/' in the reference means 'inside this directory',
so this reference means 'Yet Another File.txt inside A Subdirectory'.
If I wanted to link 'Yet Another File.txt' to 'Something.txt', I could
do it as follows:
<a href="../Something.txt">a link to something</a>
This is another relative link, meaning 'link to the file called
Something.txt in the previous directory'. The '../' in the link's
reference means 'the parent directory', so the link means
'Something.txt in the parent directory'.
Linking 'Yet Another File.txt' to 'A file.txt' is a bit more complex,
since they are in very different directories. One way of doing it with
relative links would be:
<a href="../../Some Directory/A file.txt">a file</a>
...meaning 'A file in "Some Directory" in the parent directory's parent directory'.
Another - possibly easier - way of doing this would be to use an
absolute link. These links remain the same no matter where the file
containing the link is. In this example, the link would be:
<a href="file:///Some Directory/A file.txt">a file</a>
You can tell it is an absolute link as it starts with 'file:///'. This
example means '"A file" inside "Some Directory" inside the main
"Notes" directory'.
An absolute link to 'Yet Another File.txt' would be:
<a href="file:///A Different Directory/A Subdirectory/A file.txt">bla</a>
This would remain the same no matter where the file is located.
I hope this makes things clearer for you. If you have any questions,
please feel free to request a clarification.
--wildeeo |
Clarification of Answer by
wildeeo-ga
on
07 Feb 2005 17:06 PST
Hi,
To answer your questions:
1. Yes, you can link to a directory. To link to 'Some Directory' from
'Yet Another File.txt', you could use either of the following:
<a href="../../Some Directory">some directory</a> or
<a href="file:///Some Directory">some directory</a>
(the first one being a relative link, the second absolute). This
provides a list of all notes inside that directory.
2. Yep, you can have just the name. I used the .txt extension simply
to make it clearer which were notes and which were directories.
3. I'm not completely sure what you meant with this question... If you
were asking if there are any limits to the number of directories you
can link to from one note, then no, as long as it fits inside the note
size limit. If you were asking if there is a limit on the total number
of directories you can put on the iPod, again no (or at least, not one
you are likely to hit). If it was neither of these, could you please
clarify it.
I hope that helps.
|