#CACHE{30*24*3600,cache-client} #HTTP_HEADER{Content-Type: text/javascript; charset=iso-8859-1} // Menu accessible dynamique et CSS alternatives, V 2.0 (avec jquery) // // Copyright (c) 2004 Jacques PYRAT // http://www.pyrat.net/ // // Licensed under the LGPL license // http://www.gnu.org/copyleft/lesser.html // // ********************************************************************** // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // ********************************************************************** // // Presets var jp_blankpic='#CHEMIN{images/1.gif}'; var jp_onclass='menu_plus'; var jp_offclass='menu_minus'; var jp_picalt='<:soyezcreateurs:menu_picalt:>'; var jp_strDeplier='<:soyezcreateurs:menu_deplier:>'; var jp_strReplier='<:soyezcreateurs:menu_replier:>'; var jp_parentID='menu'; // Checking for DOM compatibility if (document.getElementById && document.createTextNode && document.createElement){jp_canDOM=true} function jp_expinit(){ if (jp_canDOM){ if(jp_parentID && document.getElementById(jp_parentID)){ jp_alluls=document.getElementById(jp_parentID).getElementsByTagName('UL'); jp_alllis=document.getElementById(jp_parentID).getElementsByTagName('LI'); }else{ jp_alluls=document.getElementsByTagName('UL'); jp_alllis=document.getElementsByTagName('LI'); } for(i=0;ihstacked) { $("div.laststackable").css({'height': hnotstackable + parseInt($("div.laststackable")[0].offsetHeight) - hstacked+'px'}); $("div.notstackable").css({'height': hnotstackable+'px'}); /*alert("Cas 2");*/ } else { $("div.notstackable").css({'height': hstacked+'px'}); }; } else { /**********************************************CAS 3*******************************************************************/ /* Navigation et Extra meme Top et differents de Contenu (Layout 27-28-39-40)*/ tlaststackable = parseInt($("div.laststackable")[0].offsetTop); tstackable = parseInt($("div.stackable")[0].offsetTop); if (tstackable==tlaststackable){ $("div.stackable").css({'height': parseInt($("div.stackable")[0].offsetHeight)}); var h=0; $("div.stackable").each(function(){ h=Math.max(h,this.offsetHeight); }).css({'height': h+'px'}); /*alert("Cas 3");*/ } else { /**********************************************CAS 4*******************************************************************/ /* Navigation et Contenu meme alignement Top (Layout 35 et 36)*/ largeurcontenu = parseInt($("div.notstackable")[0].offsetWidth); if (largeurcontenu==largeurextra) { hstackable = (hauteurcontenu = parseInt($("div.notstackable")[0].offsetHeight)) + (hauteurext = parseInt($("div.laststackable")[0].offsetHeight)); hnavigation = parseInt($("div#navigation")[0].offsetHeight); if(hstackable < hnavigation) { $("div.notstackable").css({'height': (hnavigation - hauteurext)+'px'}); } else { $("div#navigation").css({'height': hstackable+'px'}); } /*alert("Cas 4");*/ } else { /**********************************************CAS 5*******************************************************************/ /* Navigation et Contenu meme alignement Top (Layout 29 a 32 et 37 et 38)*/ hstackable = (hauteurcontenu = parseInt($("div.notstackable")[0].offsetHeight)); hnavigation = parseInt($("div#navigation")[0].offsetHeight); if(hstackable > hnavigation) { $("div#navigation").css({'height': hstackable+'px'}); } else { $("div.notstackable").css({'height': hnavigation+'px'}); } /*alert("Cas 5");*/ } } } } } ; $(document).ready(function() { jp_expinit(); // Surligner l'evenement en cours var id_anchor = location.hash.substr(1); //Get the word after the hash from the url if (id_anchor) $('#'+id_anchor).parent().addClass('highlight_anchor'); // ajoute la classe highlight_anchor à l'element autour de l'ancre if (CanceladjustLayout != true) { adjustLayout(); $("body").resize( function () { adjustLayout(); } ); $.em.element = $('
').css({ left: '-100em', position: 'absolute', width: '100em' }) .prependTo('div.texte')[0]; $('div.texte').bind('emchange', function(e, cur, prev) { adjustLayout(); }); onAjaxLoad(adjustLayout); // Merci Marcimat sur IRC ! } [(#CONFIG{soyezcreateurs/native_tooltips}|=={on}|non) $(function() { $('a, input, select, img, button, h2, h3, dd, acronym, abbr, area').tooltip({ track: false, delay: 0, showURL: false, showBody: " - ", fade: 250 }); }); ] });