You can insert Links into your page. You can insert links to text, graphic images, Bookmarks, Multimedia and other web resource objects. The method is the same for all objects.
The following example describes how you can insert a link to a text into your web page.
The following is one of the example files included in your program CD. Start
the program and select a Web site component.
From the File menu, choose Open, and open the web site example Gold_easy_1.cnq
file. It is located in the Web Examples/Tutorial Quickstart folder on the program CD.
From the Site manager's Physical Layout or Logical Layout,
double-click on any page you want to insert a link into. The page opens.
Place the cursor on your web page, and type:
View the details section of my web site.
To make the words "details section" a link, drag the mouse over the
words to select them.
Click on the Insert Link icon on the Insert Object Toolbar. The Link dialog
box opens.
This dialog box has five tabs. They provide a comprehensive set of features to select and set all kinds of links and link attributes. By default, the To Page tab opens. It includes the Page window that lists names of all logical pages in your current web site project. These are the choices of all logical pages you can link to. To set a link to any of the pages listed, click on a page name in the list. It will be selected. Click on the Assign URL button. The link will be set.
If the page you are linking to has a bookmark, you can set your link to go to the bookmark location on that page. To do this, click on a name of a page you want to link to, and click on the Bookmark combo box at the bottom of the Link dialog box. It displays a list of bookmarks you have on a page. Select a bookmark you want to link to. Sometimes you may want to insert an actual text for a link right in the Link dialog box. This is devised for convenience purposes. If you want to do so, simply enter a text you want to display on your web page, and click on Replace Link. The text you entered is placed on the web page instead of any text you had selected as a link.
If you have not selected a text or an object on your web page, you can set an actual text to be a link right in the Link dialog box. To do this, click on the Insert Link Icon without selecting any text on the page. In the Link dialog box, enter the text you want in the Link Text field at the bottom of the dialog box, and click on the Insert Link button.
Deleting Links
To delete a link you had previously set, select it on the web page and click on the Link
icon. Click on the Delete Link button in the Link dialog box. The link will
be removed from the selected text.
Using the Open in New browser option when inserting a link
Besides the described regular link, you can also insert a special type
of link that will force a browser to open a new session and display the linked page.
Under normal conditions, when a viewer using a browser clicks on a link that is
inserted in your page, the browser shows the page the link is pointing to in the same window.
However, you can set a link to activate a new browser session. In such a case,
an old
current page remains on the screen, and a new browser window opens up with a new page.
To insert a link that will activate a new browser session, select a text in your
web
page and click on the Insert Link icon. In the Link dialog box, check the Open
in New Browser check box. Click on the Assign URL button. Now, when a viewer
clicks on the link, the browser will open a new window and place a page referred
to in the
new window.
Typing in a Link mode
Instead of first entering your text in your web page and then selecting it, you can type in
a link mode. Everything you type will be a link. To type in a link mode, place the cursor
anywhere you want to start entering a text. Click on the Insert Link icon, select the
Lock Link Mode button. Enter a paragraph you want. Everything you enter will be a
link. Once you are done entering your text, click on the Insert Link icon and select
Lock Link Mode. The Insert Link button stays pressed in. All text you
type in your page will be a link.
Whenever you want to switch to a normal mode and disable the lock link mode, click on the Link
icon on the toolbar.
When a viewer using a browser clicks on a link, the browser displays a linked-to page. The browser shows the linked to page as it shows any frames, frame source overlays and other resources that a page includes.
Inserting Relative Links
Instead of inserting fixed links to a specific location or a page, you
can set a link to be relative to its position. To insert a relative link, select
a text
or an object you want to link on your web page, and click on the Insert Link icon. Select
the Relative tab.
From the list of available Link to pages or Frame Sources, select a type you want to
link to.
For example, consider a case when a text of your current page you are selecting has siblings. Siblings are other pages which, when viewed from the Logical
Layout, are at the same level with a current page. When you select the Next Sibling
from the Link to list, the inserted link will point from a current
position on a current page to a next sibling logical page. A next sibling is a page to the right of
a current page in the Logical Layout. A last sibling is
the rightmost logical page in the same row of pages in the Logical Layout.
A first sibling is the first in the same row.
A Previous, Next and Last Frame Sources are sources of the same frame.
Linking to any other frame or Frame Source Overlay on the same page
In the previous section, we described how you insert a link to another
page. However, since pages can have different Frames, and frames can have many Frame
Source Overlays, the program enables you to insert links to any of these resources.
To link a text or an object on your web page to another frame on the same page, select the
text or object you want. Click on the Insert Link icon. Select the To Frame
tab.
The Frame window lists all frames currently available on a page your cursor (or
object) is on.
Select a frame you want to link to.
If the frame you selected to link to has more than one Frame Source Overlay, you
can specify exactly which Frame Source Overlay you want to link to. To do this,
click on the Frame Source Overlay combo box, and select a Frame Source you want.
If the Frame Source Overlay you selected has one or more bookmarks, you can click
on the Bookmark combo box, and select an exact Bookmark you want to link
to.
Insert a Link to multimedia, graphic objects, and other resources
Besides inserting links that point to pages, frames, or bookmarks, the program enables you
to insert links that point to graphic or multimedia objects, and other
resources. When a viewer clicks on such a link in a browser, the browser launches
a corresponding program and displays an image, or loads a file, or plays a music.
To insert a link in your page that would point to a multimedia object or other resource, double
click on the At-Work page in the Logical Layout.
Select the word Office, then click on Insert Link.
In the Link dialog box, select the To Resource tab.
The Resource window displays a Physical Layout of all your resources.
To link to one of the images, double click on the Images folder in the list. Click
on the Image1 to select it. Click on the Assign URL button. The link is now set to
point to the Image1 file.
Click on the Preview icon. This will bring up a browser and display your current page. Click on the text
office which is a link to your image. The browser will launch whatever application is needed to
display the
graphic image. The application is usually pre-set by Windows on your PC, and a viewer can
reset it. Had this been a wave file, the MIDI player would have been launched, and you would
have heard the music play.
To insert External Links
You can insert a link to any external URL location you like. To insert a link to an
external resource, open the At-Work page of your example site. Select the words West
building. Click on the Insert Link icon on the Toolbar. Select the External
tab.
In the URL field, either choose a URL prefix or enter it, and enter an exact address of an external URL. If you have entered external links before, they will be listed in the External links window. You may click on any one to select it. Click on the Assign URL button.