RoutesAdvices about Frames
In this page we won't teach you to realize frames (it also depends a lot on the program you're employing), but we'll give you some advice about the best way of using them.
Since frames were generated (it's to say the possibility of dividing one page in several portions), the habit came in use of creating a bar, lateral, at the head or at the foot of the page, that works as an index for all the pages of the site. This is very useful for visitors, as it gives them an index always within reach. Here at left you see the lateral menu of Vagabondo, made with footprints of our little bear.
It's surely useful to endow our pages with such a menu, but be careful: we have to take some precautions in case (and it's frequent) one of the following situations occurs:
- An external visitor may have reached you with a mistaken link, connecting him to a particular page and not to the index of frames, maybe through a searching engine, which rarely goes straight to the Homepage.
- Either he may have visualized your pages enclosed in the frames of an unpleasant site which mantains it's own menu instead of consenting you to visualize yours.
In both case the visitor will see your page without navigation bar and thus he wan't be able to visit your site. What can we do?
First case To prevent the first case we may do two things: We'll place the same links of the menu inside the page (in all Vagabondo's pages you find the links above and underneath:
[Home][WEB][Usenet][Ring][Tracce][Forum][Tana][Cafe'][Chi siamo][News]
It's so possible to get to different sections of the site even without employing the lateral menu.).
We may as well insert a small javascript which will notice if the page is not in the right frames and send to the homepage of our site. The javascript you may copy here below, it has to be inserted just before the tag </HEAD> and you must put the address of your homepage instead of "www.vagabondo.net"
Case two
One should always avoid containing other people sites in one's frames. As a matter of fact this prevents "bookmarking" and therefor it's decidedly uncorrect. It may however happen that, often without thinking, but sometimes also in bad faith, some sites "appropriate" your pages containing them in their frames.
Against this possibility the best is to provide for a link inviting the visitor to free the page from frames, something like:
Prisoned in another site! Click here to free me!
The above said link we'll have planned with a connection to our Homepage and the attribute target="top"
<A href="http://www.vagabondo.net/" target="_top"> Click here to free me! </A>
Note:
If you want to link a site, but you don't want to lose the visitor, you may use the target="_blank" wich will determine the opening of the site on a new window. Es:
<A href="http://www.vagabondo.net" target="_blank"> Vagabondo </A>
Javascript defenses
If our page DOESN'T use frames you may defend it from other people's with javascript: the script here below take away the page from any frame that contains it. This script as well should be inserted just before the tag </HEAD> and you must put the address of your page instead of "www.vagabondo.net"
Vagabondo's pages employ a script up to recognize if the frames it's contained in are the right ones or not, and to act consequently; but this script is to complicate to be explained here. Anyway if you have an advanced javascript knoledge you can get it from the source code of this page
back to Routes
If you want to link Vagabondo from your site check out our "Buttons".
|