home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2006 May
/
PCWMAY06.iso
/
Sponsors
/
Xara
/
content
/
lib
/
start.js
< prev
Wrap
Text File
|
2005-03-29
|
1KB
|
41 lines
var menubox_version = 0;
if (window.external) if (window.external.menuboxversion) menubox_version = window.external.menuboxversion;
function menubox_close()
{
if (menubox_version >= 200) window.external.close();
else window.close();
}
function menubox_execute(file, parameters, directory, verb, show, absolutepath, wait)
{
if (menubox_version >= 200) window.external.execute(file, parameters, directory, verb, show, absolutepath, wait);
else if (window.location) if (window.location.href) if (navigator.userAgent) if (file.length > 0)
{
if (file.charAt(file.length-1) == "\\" && navigator.userAgent.indexOf("MSIE 3") == -1) window.open(file,"_blank");
else window.location.href = file;
}
}
function menubox_exists(file)
{
if (menubox_version >= 230) return window.external.exists(file);
else return false;
}
function menubox_language()
{
if (menubox_version >= 230) return window.external.language;
else return "en";
}
function openWindow(url,width,height)
{
var w = window.open (url, "democd", "width="+width+",height="+height+",resizable=1,scrollbars=1,menubar=0");
}
function swap(image,imagefile)
{
document.images[image].src = imagefile
}