function flashObject(url, id, width, height, version, bg, flashvars, params, att) { var pr = ''; var attpr = ''; var fv = ''; var nofv = 0; for(i in params) { pr += ''; attpr += i+'="'+params[i]+'" '; if(i.match(/flashvars/ig)) { nofv = 1; } } if(nofv==0) { fv = ''; } htmlcode = '' +' '+pr+fv/* +' ' +' '+pr+fv +' Vous devez installer le Plugin FlashPlayer' +' ' +' '*/ +' ' +''; $('#'+id).empty().append(htmlcode); } function InitPagination() { $('.pagination[prepare!="1"] .others_page').each(function(){ $(this).addClass('ui-widget-content ui-state-default').css({margin:0,padding:'0.2em 0.3em'}); }); $('.pagination[prepare!="1"] .others_page_select').each(function(){ $(this).addClass('ui-widget-content ui-state-default').css({margin:0,padding:'0.2em 0.1em'}); }); $('.pagination[prepare!="1"] .current').each(function(){ $(this).addClass('ui-widget-content ui-state-default ui-state-active').css({margin:0,padding:'0.2em 0.2em'}); }); $('.pagination[prepare!="1"] .prevnext').each(function(){ $(this).addClass('ui-widget-content ui-state-default').css({margin:0,padding:'0.2em 0.3em'}); }); $('.pagination[prepare!="1"] .prev').each(function(){ $(this).empty(); $(this).css({display:'inline-block'}).prepend(''); $(this).append(' '); $(this).addClass('ui-corner-left'); }); $('.pagination[prepare!="1"] .next').each(function(){ $(this).empty(); $(this).css({display:'inline-block'}).prepend(''); $(this).append(' '); $(this).addClass('ui-corner-right'); }); $('.pagination[prepare!="1"] .disabled').each(function(){ $(this).addClass('ui-widget-content ui-state-default ui-state-disabled').css({margin:0,padding:'0.2em 0.3em'}); }); $('.pagination[prepare!="1"]').each(function(){ $(this).attr('prepare','1'); }); } function TwitLoad() { $('#re_Twitter_content').load('/m/twitter.php'); } function DomReady() { $('.ui-link, .ui-addthis, ui-box').hover(function(){$(this).addClass('ui-state-hover');},function(){$(this).removeClass('ui-state-hover');}); $('input:text,input:password,textarea').addClass('ui-state-default').addClass('ui-corner-all').hover(function(){$(this).addClass('ui-state-hover');},function(){$(this).removeClass('ui-state-hover');}); $('.ui-state-default').hover(function(){ $(this).addClass('ui-state-hover'); },function(){ $(this).removeClass('ui-state-hover'); }); $('.ui-state-default').mouseup(function(){$(this).removeClass('ui-state-active');}); $('.ui-state-default').mousedown(function(){$(this).addClass('ui-state-active');}); $('input:submit,input:button,input:reset').button(); $('input:radio').buttonset(); $('button').button(); $('#AddThisOnClick').hover(function(){$('#AddThisClicked').show();}, function(){$('#AddThisClicked').hide();}); $("a[box='Rules']").colorbox({width:"80%", height:"90%"}); $("a[box='coms']").colorbox({width:"60%", height:"90%",iframe:true}); $("a[box='modal']").colorbox({onComplete:function(){window.setTimeout('DomReady();',500);},scrolling:false}); $("a[box='ajax']").colorbox({onComplete:function(){window.setTimeout('DomReady();',500);}}); $("a[box='jeux']").colorbox({width:"80%", height:"100%",iframe:true,scrolling:false}); $("a[box='iframe']").colorbox({width:"80%", height:"80%",iframe:true}); $("a[box='photo']").colorbox({width:"80%", height:"80%"}); $("a[box='diaporama']").colorbox({slideshow:true,photo:true}); $("div.icon5[prepare!=1]").each(function(){ $(this).addClass('ui-state-default ui-helper-clearfix ui-corner-top'); $(this).css({padding:4,marginTop:2,marginBottom:2,fontWeight:"bold"}); $(this).prepend(''); $(this).attr('prepare','1'); }); $("div.icon[prepare!=1]").each(function(){ $(this).addClass('ui-state-default ui-corner-all ui-helper-clearfix'); $(this).css({padding:4,marginTop:2,marginBottom:2,fontWeight:"bold"}); $(this).prepend(''); $(this).attr('prepare','1'); }); $("div.icon2[prepare!=1]").each(function(){ //$(this).addClass('ui-state-default ui-corner-all ui-helper-clearfix'); $(this).css({display:'inline-block'}).prepend(''); $(this).attr('prepare','1'); }); $("div.icon3[prepare!=1]").each(function(){ //$(this).addClass('ui-state-default ui-corner-all ui-helper-clearfix'); $(this).css({display:'inline-block'}).prepend(''); $(this).attr('prepare','1'); }); $("div.icon4[prepare!=1]").each(function(){ $(this).addClass('ui-state-default ui-helper-clearfix'); $(this).css({padding:0,marginTop:2,marginBottom:2,fontWeight:"bold",width:'16px',margin:'auto',cursor:'pointer',display:'inline-block'}); $(this).prepend(''); $(this).attr('prepare','1'); }); $("div.icon4.debut").each(function(){ $(this).addClass('ui-corner-left'); }); $("div.icon4.milieu").each(function(){ $(this).css({borderLeftWidth:0}); }); $("div.icon4.fin").each(function(){ $(this).addClass('ui-corner-right'); $(this).css({borderLeftWidth:0}); }); $('hr').after('
').remove(); //window.setTimeout('tooltip();',100); $("a.inhibeclick").click(function(event) { event.preventDefault(); event.stopImmediatePropagation(); }); $('.ui-ratethis[prepare!=1]').each(function(){ NomVote = $(this).attr('rel'); $(this).load('/reverif.vote.php?nom='+NomVote); $(this).attr('prepare','1'); }); InitPagination(); } function OuvrirFermer(id) { $("#"+id).slideToggle("slow"); } //$(document).ready(function(){$('#AddThis_Callback').load('/jscripts/addthis.html');}); function notification(mess) { $('#jGrowl').jGrowl(mess, { sticky: true }); } $(document).ready(function(){ $.localScroll({ hash:true,duration:1000, easing:'easeInOutExpo' }); $.localScroll.hash(); //$("#progressbar").progressBar(45, {showText: true }); //AfficheCompteurs(0); window.setInterval("AfficheCompteurs();",240000); //AfficheCompteurs(); DomReady(); TwitLoad(); window.setInterval("TwitLoad();",300000); }); $(document).ajaxComplete(function(){ window.setTimeout('DomReady();',500); }); function accept_rules() { newOnClick = $('#validate').attr('newOnclick'); $('#validate').attr({disabled:false,value:"Inscription",onclick:newOnClick});$('#OnClickRules').slideUp('1200'); } function VoteContre(style) { $.post('/vote.js.php?vote_style=1&contre=1&vstyle='+style,{value:"0"},function(data){jQuery.facebox(data.returnx);$('#vote_'+style).load("/m/infosstyle/vote.php?NoReady=1&vstyle="+style);},"json"); } function VotePour(style) { $.post('/vote.js.php?vote_style=1&pour=1&vstyle='+style,{value:"0"},function(data){jQuery.facebox(data.returnx);$('#vote_'+style).load("/m/infosstyle/vote.php?NoReady=1&vstyle="+style);},"json"); } function VoteContre_1(vte) { $.post('/vote.js.php?vote_regexs=1&contre=1&nom='+vte,{value:"0"},function(data){jQuery.facebox(data.returnx);$('.c_vote_'+vte).load('/reverif.vote.php?nom='+vte);},"json"); } function VotePour_1(vte) { $.post('/vote.js.php?vote_regexs=1&pour=1&nom='+vte,{value:"0"},function(data){jQuery.facebox(data.returnx);$('.c_vote_'+vte).load('/reverif.vote.php?nom='+vte);},"json"); } function confirmation(mess,page) { if(confirm(mess)) { document.location.href=''+ page +''; return true; } else { stop(); return false; } } function confirmation2(mess) { if(confirm(mess)) { return true; } else { stop(); return false; } } //function message(mess) { //Function basique... Simple raccourcis pour FaceBox xD // jQuery.facebox(mess); //} function message(mess) { notification(mess); } function notif_partager(qui) { notification('Vous avez partagé cette page avec '+qui); } function TimerDelete(id,temps) { window.setTimeout("$('#"+id+"').slideUp('slow');",temps); } function popup_centree(url,largeur,hauteur){ LeftPosition=(screen.width)?(screen.width-largeur)/2:100;TopPosition=(screen.height)?(screen.height-hauteur)/2:100; settings='width='+largeur+',height='+hauteur+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=yes,directories=no,status=no,menubar=no,toolbar=no,resizable=yes'; win=window.open(url,'_blank',settings); } function ChangeLocation(url) { window.location=''+url+'' } function ScrollTo_id(id,duration) { $.scrollTo(id, duration, {easing:'swing'}); } function ScrollTo_Top(id,duration) { $.scrollTo(id, duration, {easing:'swing'}); } function suggestPassword() { var pwchars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; var passwordlength = 8; // do we want that to be dynamic? no, keep it simple :) var passwd = document.getElementById('generated_pw'); passwd.value = ''; for ( i = 0; i < passwordlength; i++ ) { passwd.value += pwchars.charAt( Math.floor( Math.random() * pwchars.length ) ) } return passwd.value; } function suggestPasswordCopy() { document.getElementById('pass1').value = document.getElementById('generated_pw').value; document.getElementById('pass1').value = document.getElementById('generated_pw').value; return true; } var intervalPost52; var intervalAffiche52; function LanceRechercheMembre_Messagerie() { clearInterval(intervalPost52); $('.resultSearch').empty().append('Patientez...'); intervalPost52 = setTimeout("LanceRechercheMembre2_Messagerie();",1000); } function LanceRechercheMembre2_Messagerie() { $.post('/membre/searchMembre.php',{pseudo1:$("#SearchMembre").attr("value")},function(data){$('.resultSearch').empty().append(data.text)},"json"); } function LanceRechercheMembre_Membre() { clearInterval(intervalPost52); $('.resultSearch').empty().append('Patientez...'); intervalPost52 = setTimeout("LanceRechercheMembre2_Membre();",1000); } function LanceRechercheMembre2_Membre() { $.post('/membre/searchMembre.php?membreSearch=1',{pseudo1:$("#SearchMembre").attr("value")},function(data){$('.resultSearch').empty().append(data.text)},"json"); } function RetourAuSondage() { $('#theAjaxSondage').empty().append('
Patientez...
').load('/ajax.php?action=reload-sondage'); } function ResultatsSondage() { $('#theAjaxSondage').empty().append('
Patientez...
').load('/ajax.php?action=reload-sondage&resultats=1'); } function RetablissementPage() { $('end').hide(); $('body').show(); } function AfficheProfil(id) { xOffset = "-10"; yOffset = 0; $('.apercuProfile').show(); $('.apercuProfile').addClass('shadow ui-corner-all'); $('.apercuProfile').empty().append('
Patientez...
').load('/membre/apercuProfil.php?key='+id); } function load_search_membre(id) { $('#TheListMembres').empty().append('
Patientez...
').load('/membre/liste.ajax.php?messagerie=1&pge='+id); } function load_pge_liste(id) { $('#TheListMembres').empty().append('
Patientez...
').load('/membre/liste.ajax.php?pge='+id); } function VoteRating(nom,note) { $.post('/vote.js.php?rating&rate='+note+'&name='+nom,{value:"0"},function(data){jQuery.facebox(data.returnx);$('.star-rating li span.current').css('width',data.theNewMoyenne)},"json"); }