Is Degrassi Jr. High gone forever?







document

<!–
function Action()
{
if(unescape(location.search.substring(1)) == "Action=SaveDoc")
{
sauvegarder()
}
if(unescape(location.search.substring(1)) == "Action=PrintDoc")
{
printPage()
}
}

DA = (document.all) ? 1 : 0
/*window.onerror=handle_error

function handle_error()
{
alert(window.onerror +"Your browser does not support this function. Please use the appropriate command from the menu of your browser.")
// to cancel the script error warning
return true;
}
*/

// initialize the value of "browser"
var browser = "oldAndInTheWay";
var bName = navigator.appName;
var bSysOp = navigator.platform
var bVersion = navigator.appVersion;

function sauvegarder()
{
// check for Netscape on Mac
if (bName == "Netscape" && bSysOp == "MacPPC")
{
alert("Your browser does not support this function. To save this page, please use the saving command from the menu of your browser.")
//alert ("To save this page, press CTRL and click on the link "Save". Then, choose the option Save Link as…")

}
else if (bName == "Microsoft Internet Explorer" && bVersion.indexOf("MSIE 5") 0 || bVersion.indexOf(“MSIE 6”) > 0) && bSysOp == “Win32”){
if (document.all) {
var IDM_SAVEAS = 4;
var OLECMDEXECOPT_DONTPROMPTUSER = 2;
var OLECMDEXECOPT_PROMPTUSER = 1;
var WebBrowser = “”;
document.body.insertAdjacentHTML(“beforeEnd”, WebBrowser);
WebBrowser1.ExecWB(IDM_SAVEAS, OLECMDEXECOPT_PROMPTUSER);
WebBrowser1.outerHTML = “”;
window.close()
}

else if (bName == “Microsoft Internet Explorer” && bVersion.indexOf(“MSIE 5″) < 0 && bSysOp == "Win32")
{
// check for MSIE under version 5 on PC
alert("Your browser does not support this function. To save this page, please use the saving command from the menu of your browser.")
//alert ("To save this page, right click on the link "Save". Then, choose the option Save Target as…")

}
} else {

alert("Your browser does not support this function. To save this page, please use the saving command from the menu of your browser.")
//alert("To save this page, use the save command from the menu of your browser.")

}
}

var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1);

function printPage()
{
if (pr) // NS4, IE5
window.print();
else if (da && !mac) // IE4 (Windows)
vbPrintPage();
else // other browsers
alert("Your browser does not support this function. Please use the appropriate command from the menu of your browser.");
return false;
}
if (da && !pr && !mac) with (document) {
writeln('’);
writeln(”);
writeln(‘Sub window_onunload’);
writeln(‘ On Error Resume Next’);
writeln(‘ Set WB = nothing’);
writeln(‘End Sub’);
writeln(‘Sub vbPrintPage’);
writeln(‘ OLECMDID_PRINT = 6’);
writeln(‘ OLECMDEXECOPT_DONTPROMPTUSER = 2’);
writeln(‘ OLECMDEXECOPT_PROMPTUSER = 1’);
writeln(‘ On Error Resume Next’);
writeln(‘ WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER’);
writeln(‘ window.close()’);
writeln(‘End Sub’);
writeln(”);
}

// –>

Advertisement

Comments are closed.

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s