home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.uv.es
/
2014.11.ftp.uv.es.tar
/
ftp.uv.es
/
pub
/
linux
/
comm472.tar.gz
/
communicator-v472-export.x86-unknown-linux2.2.tar
/
communicator-v472.x86-unknown-linux2.2
/
nethelp-v472.nif
/
nethelp-v472
/
nethelp
/
Topic.js
< prev
next >
Wrap
Text File
|
1998-05-19
|
3KB
|
145 lines
/* ==================================================================
FILE: Topic.js
DESCR: Topic library file for Netscape Help implementation.
NOTES:
================================================================== */
// Make system object easily available to topics. Note that
// when a topic file is printed, the browser reloads the document
// internally out of the frameset context. This means that these
// references may be undefined, so test first.
var system
if ( typeof top.SystemFrame != "undefined" ) {
system = top.SystemFrame.systemObj
}
function onload()
{
//top.SystemFrame.trace( "topic.js onload()" )
//alert( "topic.js onload()" )
// Same print issue.
if ( typeof top.SystemFrame == "undefined" ) return
// Bind events to global event handlers.
top.bindDocEvts( document )
// Verify all hrefs are nethelp: URLs.
if ( top.SystemFrame.CHECK_HREFS ) {
for ( i = 0; i < document.links.length; i++ ) {
// Exempt certain schemes.
var href = document.links[ i ].href.toLowerCase()
if ( href.indexOf( "javascript:" ) != -1 ) break
if ( href.indexOf( "mailto:" ) != -1 ) break
// Verify nethelp: URL.
if ( href.indexOf( "nethelp:" ) == -1 ) system.badURLerror( href )
}
}
top.StatusFrame.setStatusClear()
// Manage layered topics. We travel here even if the system is not using
// layered topics.
system.manageLayers()
}
function loadSheet(platform,location)
{
//alert(platform,location);
if ((location) && (location == "top")) {
if ((platform == "Win32")) {
document.write("<LINK REL=STYLESHEET TYPE='text/css' HREF='/Netscape/shared/NetHelpw.css'>");
}
else if ((platform == "MacPPC") || (platform == "Mac68k")) {
document.write("<LINK REL='STYLESHEET' TYPE='text/css' HREF='/Netscape/shared/NetHelpm.css'>");
}
else {
document.write("<LINK REL='STYLESHEET' TYPE='text/css' HREF='/Netscape/shared/NetHelpu.css'>");
}
}
if ((location) && (location == "content")) {
if ((platform == "Win32")) {
document.write("<LINK REL=STYLESHEET TYPE='text/css' HREF='../shared/NetHelpw.css'>");
}
else if ((platform == "MacPPC") || (platform == "Mac68k")) {
document.write("<LINK REL='STYLESHEET' TYPE='text/css' HREF='../shared/NetHelpm.css'>");
}
else {
document.write("<LINK REL='STYLESHEET' TYPE='text/css' HREF='../shared/NetHelpu.css'>");
}
}
}