超链接
您可以在 SkillPort 中添加指向自定义页面的超链接。这些链接可以指向 SkillPort 中的其他自定义页面或指向外部文档和网站。有关使用超链接的限制和最佳做法将在接下来的部分中介绍。
绝对路径和相对路径
可以对超链接使用绝对路径或相对路径。
绝对路径统一资源定位符 (URL):
- 必须以“http”开头,或采用 <任意字符串>.action 格式。
- 如果 URL 以“http”开头,则字符串长度应至少为 9 个字符。
- 如果 URL 采用 <任意字符串>.action 格式,则任意字符串的长度应至少为两个字符。
相对路径 URL:
- 必须以“/”或“./”开头。
- 后面应跟文件夹名称或文件名。
- 应以文件名结尾(文件名是包含一个“.”的字符串)。
有效 URL 示例:
- goodbyepageurl =“goodbye.action”
- 段 URL = "main.action?rightPanel=myplan&rightAction=home"
- 段 URL = /custom/customPage.html
- 背景图像 URL = ./images/skillPort-bckgrd.jpg
- 段 URL = http://www.skillsoft.com
非 HTML 文档超链接
您无法创建指向非超文本标记语言 (HTML) 文档(例如 Microsoft Word 文档)的直接链接。您可以将目标文档保存为 HTML 并链接到该文档,或者在目录管理器中将其定义为 自定义内容。
Custom content is external items (such as an Internet web site) that you want to appear in the course catalog. Custom content can be generic content or External Learning objects.
External Learning objects are any set of references that serve as learning activities and resources. It may include:
- Membership in professional associations
- Subscriptions to (or articles in) journals/magazines
- On-the-job or off-the-job experiences
- Web sites
- Internet news groups
- In-house policy/procedure manuals
Note: Generic custom content is not available via Search-and-Learn. However, External Learning objects are available via Search-and-Learn.
To define custom content:
- From the Curricula Builder page, select a group in the curricula tree where you want the custom content object to appear.
- Click the Define Custom Content button.
- Enter the title of the custom content object and a valid URL.
- If it is an External Learning Object, enter the unique identifier, and if necessary, a description and objectives.
Note: The unique identifier is automatically assigned a prefix of "elo_".
- Click the Submit button.
- Click the Make Changes Visible to Users button.
Note: You cannot place custom content directly under the top level, All Curricula. You must add it to an existing subgroup or add a new group.
外部文档超链接
您可以使用 HTML 或 HTML with JavaScript 添加到 SkillPort 外部页面的链接。要仅使用 HTML 添加链接,请添加下面所示的代码:
<a href="http://<域>/<路径>/<文件名>" target="_blank">链接文本</a>
示例 <a href="http://office.microsoft.com" target="_blank">Microsoft Office 支持网站</a>
还可以添加 JavaScript 来使用 window.open JavaScript 事件控制新窗口的大小。以下代码将在 SkillPort 窗口前打开一个窗口,但不会遮挡 SkillPort 窗口:
<a href="#" onClick='window.open("http://www.Skillsoft.com","Skillsoft","height=800,width=400")'>链接文本</a></li>
注意:您无法使用 Internet 协议 (IP) 地址向页面添加内容。
带重定向的页面
有些 URL 在网页中使用重定向将访问者发送到其他 URL。这些页面无法从 SkillPort 中启动,当用户试图查看 URL 时,会显示错误消息。要纠正此问题,请在单独的浏览器中打开所需站点,从地址栏中复制实际 URL,并将其粘贴为自定义链接 URL。
电子邮件链接
添加电子邮件链接代码(如下所示):
<a href="mailto:support@skillsoft.com">Skillsoft 技术支持</a>
|