var x; var y; if(navigator.appName.substring(0,3) == "Net") document.captureEvents(Event.MOUSEMOVE); document.onmousemove = mouse_position; function mouse_position(e) { x = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft; y = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop; } function aff_menu_si_connecte(menu) { var values = $H({ option: 1}); var params = values.toQueryString(); new Ajax.Request("http://www.ifetards.info/connection.php",{ method: 'get', parameters: params, onComplete: aff_menu_fetards }); } function aff_menu_fetards(xhr) { if(xhr.responseText==1) {aff_menu('fetards');} else {aff_menu('');} } function aff_liste_titre_img_perso(xhr) {$('navig').innerHTML=xhr.responseText;} function aff_img_perso(chem_photo) { $('imgpersoajout').innerHTML=""; } function supprime_img_perso(num_perso) { var values = $H({ num: num_perso}); var params = values.toQueryString(); new Ajax.Request("http://www.ifetards.info/supprime_img_perso.php",{ method: 'get', parameters: params, onComplete: refrech_liste_titre_img_perso }); } function refrech_liste_titre_img_perso(xhr) {naviguer('feta1');} function aff_liste_telechargement(xhr) {$('navig').innerHTML=xhr.responseText;} function changer_pass_fetard() { if($('ancien').value=="" || $('nouveau').value=="") $('div_mess_mdp').innerHTML="Veuillez remplir tout les champs."; else if($('nouveau').value=$('renouveau').value) $('div_mess_mdp').innerHTML="Le nouveau mot de passe ne correspond pas."; else { var values = $H({ passancien: $('ancien').value, passnouveau: $('nouveau').value}); var params = values.toQueryString(); new Ajax.Request("http://www.ifetards.info/opt_mdp_perso.php",{ method: 'get', parameters: params, onComplete: aff_res_change_mdp }); } } function aff_res_change_mdp(xhr) {$('navig').innerHTML=xhr.responseText;} var ajoutBr=0; function aff_menu(menu) { html="
"; html+="
Veuillez vous connecter.
"; switch(menu) { case "fetards": html="
"; html+="Photo perso

"; html+="Téléchargement

"; html+="Mot de passe

"; html+="Calendrier

"; html+="
"; break; case 'jeux': if(ajoutBr==0){$('navig').innerHTML+="

";ajoutBr=1;} html="
"; html+="3D Worm
"; html+="4x4 Rally
"; html+="Alien
"; html+="Arkanoid
"; html+="Battle ships
"; html+="Chase2000
"; html+="Connect 4
"; html+="Dragon Ball
"; html+="Flash Man
"; html+="Gyro Ball
"; html+="Mario
"; html+="Pacman
"; html+="Pacman 2005
"; html+="Pingu
"; html+="Snake
"; html+="Sonic
"; html+="Tetris
"; html+="Twiddlestix
"; html+="Wrax
"; html+="X raye
XiaoXiao"; html+=" 1"; html+=" 2"; html+=" 3"; html+=" 4"; html+="




"; html+="
"; break; case 'musique': html="
"; html+="
Sélection fêtards

"; html+="
Symix live

"; html+="
"; break; case 'video': html="
"; html+="XiaoXiao 1
"; html+="XiaoXiao 2
"; html+="XiaoXiao 3
"; html+="XiaoXiao 4
"; html+="XiaoXiao 5
"; html+="XiaoXiao city plaza
"; html+="XiaoXiao heineken
"; html+="XiaoXiao heineken2
"; html+="BTS Ig 2
"; html+="
"; html+="
"; break; case 'divertissement': html="
"; html+="
"; break; case 'auteur': html="
"; html+="
"; break; } $('petitmenu').innerHTML=html; } function naviguer(option) { var html=" "; var suboption=option.substring(0,3); if(suboption=='fet') { switch(option.substring(4,5)) { case '1': var values = $H({ option: 1}); var params = values.toQueryString(); new Ajax.Request("http://www.ifetards.info/opt_img_perso.php",{ method: 'get', parameters: params, onComplete: aff_liste_titre_img_perso }); break; case '2': var values = $H({ dossier: "telechargement/"}); var params = values.toQueryString(); new Ajax.Request("http://www.ifetards.info/opt_telechargement.php",{ method: 'get', parameters: params, onComplete: aff_liste_telechargement }); break; case '3': html="



"; html+="Ancien mot de passe   :

"; html+="Nouveau mot de passe :

"; html+="Nouveau mot de passe :

"; html+="
"; html+="

 

 

 

 

 

 

 

 

 

 

 

 

 



"; $('navig').innerHTML=html; break; case '4': break; } } else { switch(suboption) { case 'jeu': html="

"; html+=""; html+=""; html+=""; html+="



 

 

 

 

 

"; break; case 'vid': if(option.substring(5)=="1") { html=""; html+="



"; } else { html="

"; html+=""; html+=""; html+=""; html+="


 

 

 

 

 


"; } break; case 'div': break; case 'aut': break; } $('navig').innerHTML=html; } } var i=0; var j=0; function montrer_option() { j++; if(j<=11) { tabColoris = new Array ("#FF0000","#FFFFFF"); tabSize = new Array ("14px","10px"); if (i+1 == tabColoris.length) i=0; else i++; $("m1").style.color=tabColoris[i]; $("m2").style.color=tabColoris[i]; $("m3").style.color=tabColoris[i]; $("m4").style.color=tabColoris[i]; $("m5").style.color=tabColoris[i]; $("m6").style.color=tabColoris[i]; $("m1").style.fontSize=tabSize[i]; $("m2").style.fontSize=tabSize[i]; $("m3").style.fontSize=tabSize[i]; $("m4").style.fontSize=tabSize[i]; $("m5").style.fontSize=tabSize[i]; $("m6").style.fontSize=tabSize[i]; setTimeout("montrer_option()",300); } else { j=0; i=0; } } var T; var pop_active=0; function popup(num) { switch(num) { case 1: var msg="Cliquez ici pour ajouter une photo personnelle"; break; case 2: var msg="Cliquez ici pour supprimer une photo personnelle"; break; case 3: var msg="Si vous êtes un membre des Ifêtards,\nVous pouvez vous connecter ici."; break; } var objet_pop=$("popup"); if(objet_pop.style.display=='none' && pop_active==0) { objet_pop.style.left=x+"px"; objet_pop.style.top=y+"px"; objet_pop.style.display='block'; objet_pop.innerHTML=msg; pop_active=1; T=setTimeout("kill_popup()",2000); } } function kill_popup() { $("popup").style.display='none'; clearTimeout(T); pop_active=0; }