hamdouss
Messages postés1Date d'inscriptionmardi 21 avril 2009StatutMembreDernière intervention21 avril 2009
-
21 avril 2009 à 12:36
Bonjour,
j'ai integré un fichier calendar.js il marche tres bien sur IE et sur firefox non !!!
est-ce que quelqu'un peut m'aider a trouvé un solution ?
voici le script du calendar:
function MyGetDate(champs) {
IE = !(document.all?0:1);
NS = !IE;
dest = champs;
if (IE) {
// Taille du calendrier
larg = 250;
Long = 188;
posX = event.screenX; posY = event.screenY;
if (posX+larg > screen.width) posX = screen.width - larg;
if (posY+Long > screen.height) posY = screen.height - Long;
eval("maFen = window.open('','','top='+posY+',left='+posX+',width="+larg+",height="+Long+"');");
maFen.focus();
dessine();
}
}
function dessine() {
txt = '\n\n\n<!--\n\nAuteur : DarkSide <sergebertet@voila.fr> - http://www.merrouge.com/serge.htm \n\n';
txt += 'Ce script est disponible à l\'adresse : http://www.merrouge.com/calendar.zip \n\n-->\n\n\n';
txt += '<html><head><title>Choisissez une date.</title>\n';
txt += '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n';
txt += '<script>\n';
txt += 'var now = new Date();\nIE = !(document.all?0:1);\nNS = !IE;\n';
txt += 'months = new Array(\'Janvier\',\'Février\',\'Mars\',\'Avril\',\'Mai\',\'Juin\',\'Juillet\',\'Août\',\'Septembre\',\'Octobre\',\'Novembre\',\'Décembre\');\n';
txt += 'mois = now.getMonth();\nan = now.getFullYear();\njour = now.getDate();\nvide = "...";\n \n';
/*
Si on veut l'année sur 2 digits, ajouter ligne suivante :
txt += 'an = an+""; an = an.substr(2,2);'; // Y2K compliant :o) comme ils disent là-bas.
*/