Faculty Resource CentreCourses IndexOffline index pageNetTel@Africa
Page 23 of 29 pages. Chapter: 5: KEWL Resources More information about chapter

Techniques for Embedding External Web Pages

Placing static webpages within KEWL

You can place an external page inside KEWL using the IFRAME tag. For example, consider the following

<IFRAME SRC="http://www.uwc.ac.za/" width="700" height="500">
</IFRAME>

Make sure that you do not leave out the </IFRAME> tag, if you do, your
course will cease to work from the broken page onwards, and it may take a
week or more to get someone with Administrative rights to repair it for you.

The example above will place a copy of the UWC website within the KEWL
course page that you are editing. In this way, you can create static HTML
pages, and upload them to your course folder on KEWL, and include them
within your page to ensure that you get the navigation buttons and other
features of KEWL, but still allow for static HTML pages to be included. It
is not a good idea to use this method routinely, but there may be some
special cases where it is useful. For example, imagine that you have a
complex webpage, with some interactive content that is not really very
suited for placing inside the KEWL system as such. You can use WebExplorer
to upload the pages to your course folder on KEWL (or any server to which
you have access) and then place an IFRAME tag in your KEWL page to call the
external page.

Be warned, however, we are currently developing tools to enable you to
export your content from KEWL to static HTML for distribution on CDROM. KEWL
will not include IFRAME linked files, so you will need to make sure that
your IFRAME linked files are in the right location relative to the folder in
which you copy your exported your HTML for distribution on CD-ROM.

Here is Richard's example:

<h3>Hand dingis</h3>
<table width="700"><TD>
In the exercise below, you can use the hand dingis to move the image around.
Click the hand to see how to do the hand dingis's dingis.
</TD>
</Table>
<TABLE width "810">
<TR>
<TD width="710">
<IFRAME SRC="http://atlas.botany.uwc.ac.za/imagery/southafrica/ncape.htm"
width=700 height="550" align=left>
</IFRAME>
</TD>
<TD>
This is a bunch of text that should appear beside the iframe. You can have
<ul>
<li>A list titem
<li>another lits item
</ul>
</TD width=100">
</TR>
</TABLE>

Hyperlinking Email addresses

You can make it easy for a reader to send electronic mail to a specific person or mail alias by including the mailto attribute in a hyperlink. The format is: <A href="mailto:emailinfo@host">Name</A>

For example, enter: <A href="mailto:ascott@botunix.uwc.ac.za">Ms Anna Scott</A> to create a mail window that is already configured to open a mail window for Anna Scott. (You, of course, will enter another mail address!) This is OK for course content that is inside a database, but it is not a good idea to put mailto links in plain HTML webpages. There are spambots that scan websites looking for exposed email addresses, and then they use them to build a database which is used to distrubute spam emails.

Hyperlinking images

To recap, a text hyperlink is simply text, such as a word or phrase, that has been assigned a destination URL, for example, here is a hyperlink.

A picture hyperlink on the other hand is a picture that has been assigned a destination URL in one of three ways:

  • The entire picture can be assigned a default hyperlink. In this case, the site visitor can click any part of the picture to display its destination. An example of a picture with a default hyperlink is a button.
  • Similarly, an image can be cut and placed in a table much like the “HTML Tutor” and each individual image can be assigned its own default hyperlink. Again in this case, the site visitor can click any part of each picture in a cell to display its unique destination.
  • The picture can be assigned one or more hotspots, which are hyperlink regions on the picture. A picture that contains hotspots is called an image map. For example, an image map can be a picture that represents different parts of a Web site (such as the home page, a catalogue page, and so on). The site visitor clicks a certain area of the image map to display the corresponding page. We will not be showing you how to hyperlink a hotspot as this requires knowing the co-ordinates of the area to assign as the hotspot. This is often much easier accomplished with an HTML editor.

Setting a hyperlink for a graphic

You can set a default hyperlink for a graphic, such as a picture, animated GIF, or video. When a site visitor clicks the graphic, the Web browser displays the destination of the hyperlink. For example, you could hyperlink a thumbnail image to its larger counterpart. The code would read as follows:

<A href="images/lgfynbos.jpg"><IMG border="1" src=" images/thfynbos.jpg" width="100" height="123"></A> ,

where <A href="images/lgfynbos.jpg"> is the opening tag for the hyperlink;
<IMG
border="1" src=" images/thfynbos.jpg" width="100" height="123"> is the image source code, and </A> is the closing tag for the hyperlink. As with text hyperlinks, the opening and closing tags are on either side of the image source code.

The above HTML code would produce something like this:

The original image <IMG border="1" src=" images/thfynbos.jpg" width="100" height="123"> unlinked.Once the image is linked, it is surrounded by a blue line.  To remove this line, simply set the border thickness to "0"Set at "0", the new source code will read <IMG border="0" src=" images/thfynbos.jpg" width="100" height="123">.  The entire hyperlink code can be seen above!
Click on either of the two images (middle and right) to see the larger hyperlinked image.  Why does the browser open the image in a new window?  Read on to find out!

Beside text and graphics, audio files and document formats can also be hyperlinked

Specifying the destination of a hyperlink

If you want the destination of the hyperlink to show up in a specific frame, you have to specify the target frame. This is especially useful when your HTML page comprises a number of frames. If you have not set the target frame, the default frame is usually set for your hyperlink.  Setting the target frame for a hyperlink is the same for text, images, audio files and document formats.

Click on the images (below right) to get some idea of what setting the Target frames achieve.  The full impact of setting target frames can only really be grasped when working in frames.  The following examples might therefore not appear all that different.  Keep them in mind though when you eventually start creating pages using frames.

Target Frame = Page Default (none)

<A href="images/lgfynbos.jpg"><IMG border="0" src="images/thfynbos.jpg" width="100" height="123"></A>

This hyperlink will appear in the default frame.  In this particular case, the same frame of the current window.

 

Target Frame = Same frame

<A href="images/lgfynbos.jpg" target="_self"><IMG border="0" src="images/thfynbos.jpg" width="100" height="123"></A>

This hyperlink will appear in the same frame of the current window.

 

Target Frame = Whole Page

<A href="images/lgfynbos.jpg" target="_top"><IMG border="0" src="images/thfynbos.jpg" width="100" height="123"></A>

This hyperlink will appear at the top of the page replacing all frames in the current window.

 

Target Frame = New Window

<A href="images/lgfynbos.jpg" target="_blank"><img border="0" src="images/thfynbos.jpg" width="100" height="123"></A>

This hyperlink will appear at the top of the page in a new window.

 

Target Frame = Parent Frame

<A href="images/lgfynbos.jpg" target="_parent"><IMG border="0" src="images/thfynbos.jpg" width="100" height="123"></A>

This command is similar to the "Whole Page - Target Frame", but will only replace the parent frame set.  It is often confusing so we hardly use this command.

 

Go to previous pageOrganizers for courseStudy question for this pageGo live and check course documents folderGo live and access discussion forumGo to next page