Lycos.com | Angelfire.com | WhoWhere.com | MailCity.com | Hotwired.com | HotBot.com | All Sites... |
![]() |
Tripod's HTML Tips
Send in my tip |
40.) Subdirectories Macintosh or Windows '95 users can think of subdirectories as "folders," which are places to organize and store files. Subdirectories give you a lot more flexibility in grouping and organizing your files. Files in subdirectories can be viewed in the same way as files in your member directory (if you are building on a site like Tripod). To figure out the name of a subdirectory file, you'd just insert the name of the subdirectory (bounded by "/"s on both sides) after your member name and before the file name. 41.) Creating a subdirectory You may create a subdirectory using FTP, or if you are a member of Tripod, using the Tripod Housekeeper subdirectory utility, as described below. At the top of the Housekeeper page, you'll find a list of options. Here's what to do: 1. Select "Create a new subdirectory." 2. Enter the name you wish to call your subdirectory. 3. Press the "Create new subdirectory" button, and the subdirectory is added to your Tripod Member Directory. Remember that subdirectory names, like file names, are CaSe sentitive. |
42.) Graphics in subdirectories Using subdirectories, things can get a little complicated when you tell your page where to find all the graphics files it needs. Here are three different cases you might have: 1. If your graphics file is in the same directory as the HTML file for your page, simply give the graphic filename as part of your IMG SRC tag. For example, if your graphic is named "mygraphic.gif": <IMG SRC="mygraphic.gif"> 2. If your graphics file is in a subdirectory and your HTML file is in your main Tripod Member Directory, you'll need to include the name of the subdirectory in your IMG SRC tag. For example, if your graphics file is named "mypicture.gif," and it is in your "images" subdirectory, specify the pathname: <IMG SRC="images/mypicture.gif"> HINT: Notice that there is no "/" character before the name of the subdirectory. That's because if you put a "/" in front, the server will try to find a top-level member directory with that name, instead of one of your subdirectories. We recommend that you play it safe by always including the full path. 3. If your HTML file is in a subdirectory and your graphics file is in another directory, you'll need to include the name of your main directory in addition to the location of the graphic. For example, if your member name is TriMember, your graphic "mygraphic.gif" is located an "images" subdirectory, and the HTML file is located in another subdirectory, the image reference would be: <IMG SRC="/TriMember/images/mypicture.gif"> In general, it may be safer to always specify the whole path as in the above example so you don't have to worry about where the graphic is in relation to where the HTML file is located. |
|
Previous Page Next Page |
©
Tripod Inc.
Tripod ® is a registered servicemark of Tripod, Inc., a Lycos Company. All rights reserved.
|