home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Organisation de education au Quebec
/
OrganisationEducationQuebec-2008-WinMac.bin
/
mac
/
Interface
/
LK_AUF_CHIMI
/
js
/
flashJavascript.js
next >
Wrap
Text File
|
2008-07-09
|
2KB
|
48 lines
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function fNewWin(vQuelWin){
vArgsTemp = vQuelWin.split('*');
vNameDate = new Date();
vNameDate = vNameDate.getTime();
window.open(vArgsTemp[0],'win'+ vNameDate,'width='+vArgsTemp[1]+',height='+vArgsTemp[2]);
}
function EcrireCookie(nom)
{
var argv=EcrireCookie.arguments;
var argc=EcrireCookie.arguments.length;
var expires=(argc > 2) ? argv[2] : null;
var path=(argc > 3) ? argv[3] : null;
var domain=(argc > 4) ? argv[4] : null;
var secure=(argc > 5) ? argv[5] : false;
document.cookie=nom+"="+escape(valeur)+
((expires==null) ? "" : ("; expires="+expires.toGMTString()))+
((path==null) ? "" : ("; path="+path))+
((domain==null) ? "" : ("; domain="+domain))+
((secure==true) ? "; secure" : "");
}
//-->
function animIndex_DoFSCommand(command, args) {
var animIndexObj = InternetExplorer ? animIndex : document.animIndex;
eval(command + "(\"" + args + "\");");
}
// Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('Sub animIndex_FSCommand(ByVal command, ByVal args)\n');
document.write(' call animIndex_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}