• ACCUEIL
  • blogger

    Menu déroulant : Code du script à placer en en tête

    Remplacer, au début du script , ce code
    <script src='http://theblogueurmenu.googlecode.com/files/TheBlogueur_Menu.js'
    type='text/javascript'></script


    par
     [copier/coller via le bloc notes]
    <script type='text/javascript'>
    if("undefined"==typeof dd_domreadycheck)var dd_domreadycheck=!1;var ddlevelsmenu={enableshim:!0,arrowpointers:{downarrow:["https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcaf3b22YaE4X2L1EEmdtux9mVOM35SGsqetbzGkHHYxKiJoL-DVabWY_cjXKYnsn20T_KGc5s19u7KuwsdaLpGrkqyDu_0n0x8M2L_k6jTNTX2DX7lDw-zVd22SvIFUCR9FMDaGFVqFo/s1600/helperblogger.com-arrow-down.gif",11,7],rightarrow:["https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxFg2jn0fWMPGYWtPUHMzf4thTVAtskJvYX456ZxibTsG9DEvRSswfKKrBwCsFacV61urIdx3VTug8ylonRUYy9e3QTV7VEmel38LfS8SS_VXMQ0FM4QKMErpMxI5J2JQThp65bXL4iq8/s1600/helperblogger.com-arrow-right.gif",12,12],showarrow:{toplevel:!0,sublevel:!0}},hideinterval:200,effects:{enableswipe:!0,enableslide:!0,enablefade:!0,duration:200},httpsiframesrc:"blank.htm",topmenuids:[],topitems:{},subuls:{},lastactivesubul:{},topitemsindex:-1,ulindex:-1,hidetimers:{},shimadded:!1,nonFF:!/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent),ismobile:null!=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i),getoffset:function(a,b){return a.offsetParent?a[b]+this.getoffset(a.offsetParent,b):a[b]},getoffsetof:function(a){a._offsets={left:this.getoffset(a,"offsetLeft"),top:this.getoffset(a,"offsetTop")}},getwindowsize:function(){this.docwidth=window.innerWidth?window.innerWidth-10:this.standardbody.clientWidth-10,this.docheight=window.innerHeight?window.innerHeight-15:this.standardbody.clientHeight-18},gettopitemsdimensions:function(){for(var a=0;a<this.topmenuids.length;a++)for(var b=this.topmenuids[a],c=0;c<this.topitems[b].length;c++){var d=this.topitems[b][c],e=document.getElementById(d.getAttribute("rel"));d._dimensions={w:d.offsetWidth,h:d.offsetHeight,submenuw:e.offsetWidth,submenuh:e.offsetHeight}}},isContained:function(a,b){for(var b=window.event||b,c=b.relatedTarget||("mouseover"==b.type?b.fromElement:b.toElement);c&&c!=a;)try{c=c.parentNode}catch(b){c=a}return c==a},addpointer:function(a,b,c,d){var e=document.createElement("img");e.src=c[0],e.style.width=c[1]+"px",e.style.height=c[2]+"px","rightarrowpointer"==b&&(e.style.left=a.offsetWidth-c[2]-2+"px"),e.className=b;var f=a.childNodes[1!=a.firstChild.nodeType?1:0];f&&"SPAN"==f.tagName&&(a=f),"before"==d?a.insertBefore(e,a.firstChild):a.appendChild(e)},css:function(a,b,c){var d=new RegExp("(^|\\s+)"+b+"($|\\s+)","ig");return"check"==c?d.test(a.className):void("remove"==c?a.className=a.className.replace(d,""):"add"!=c||d.test(a.className)||(a.className+=" "+b))},addshimmy:function(a){var b=window.opera?document.createElement("div"):document.createElement("iframe");b.className="ddiframeshim",b.setAttribute("src","https:"==location.protocol?this.httpsiframesrc:"about:blank"),b.setAttribute("frameborder","0"),a.appendChild(b);try{b.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"}catch(a){}return b},positionshim:function(a,b,c,d,e){if(a._istoplevel){var e=window.pageYOffset?window.pageYOffset:this.standardbody.scrollTop,f=a._offsets.top-e,g=e+this.docheight-a._offsets.top-a._dimensions.h;f>0&&(this.shimmy.topshim.style.left=d+"px",this.shimmy.topshim.style.top=e+"px",this.shimmy.topshim.style.width="99%",this.shimmy.topshim.style.height=f+"px"),g>0&&(this.shimmy.bottomshim.style.left=d+"px",this.shimmy.bottomshim.style.top=a._offsets.top+a._dimensions.h+"px",this.shimmy.bottomshim.style.width="99%",this.shimmy.bottomshim.style.height=g+"px")}},hideshim:function(){this.shimmy.topshim.style.width=this.shimmy.bottomshim.style.width=0,this.shimmy.topshim.style.height=this.shimmy.bottomshim.style.height=0},buildmenu:function(a,b,c,d,e,f){b._master=a,b._pos=d,b._istoplevel=e,e&&this.addEvent(b,function(a){ddlevelsmenu.hidemenu(ddlevelsmenu.subuls[this._master][parseInt(this._pos)].parentNode)},"click"),this.subuls[a][d]=c,b._dimensions={w:b.offsetWidth,h:b.offsetHeight,submenuw:c.offsetWidth,submenuh:c.offsetHeight},this.getoffsetof(b),c.parentNode.style.left=0,c.parentNode.style.top=0,c.parentNode.style.visibility="hidden",c.style.visibility="hidden",this.addEvent(b,function(a){if(ddlevelsmenu.ismobile||!ddlevelsmenu.isContained(this,a)){var c=ddlevelsmenu.subuls[this._master][parseInt(this._pos)];this._istoplevel&&(ddlevelsmenu.css(this,"selected","add"),clearTimeout(ddlevelsmenu.hidetimers[this._master][this._pos])),ddlevelsmenu.getoffsetof(b);var d=window.pageXOffset?window.pageXOffset:ddlevelsmenu.standardbody.scrollLeft,e=window.pageYOffset?window.pageYOffset:ddlevelsmenu.standardbody.scrollTop,g=this._offsets.left+this._dimensions.submenuw+(this._istoplevel&&"topbar"==f?0:this._dimensions.w),h=this._offsets.top+this._dimensions.submenuh,i=this._istoplevel?this._offsets.left+("sidebar"==f?this._dimensions.w:0):this._dimensions.w;g-d>ddlevelsmenu.docwidth&&(i+=-this._dimensions.submenuw+(this._istoplevel&&"topbar"==f?this._dimensions.w:-this._dimensions.w)),c.parentNode.style.left=i+"px";var j=this._istoplevel?this._offsets.top+("sidebar"==f?0:this._dimensions.h):this.offsetTop;h-e>ddlevelsmenu.docheight&&(j+=this._dimensions.submenuh<this._offsets.top+("sidebar"==f?this._dimensions.h:0)-e?-this._dimensions.submenuh+(this._istoplevel&&"topbar"==f?-this._dimensions.h:this._dimensions.h):-(this._offsets.top-e)+(this._istoplevel&&"topbar"==f?-this._dimensions.h:0)),c.parentNode.style.top=j+"px",ddlevelsmenu.enableshim&&(0==ddlevelsmenu.effects.enableswipe||ddlevelsmenu.nonFF)?ddlevelsmenu.positionshim(b,c,f,d,e):c.FFscrollInfo={x:d,y:e},ddlevelsmenu.showmenu(b,c,f),ddlevelsmenu.ismobile?(b._istoplevel||a.target.parentNode.getElementsByTagName("ul").length>0)&&(a.preventDefault(),a.stopPropagation()):(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation())}},this.ismobile?"click":"mouseover"),this.addEvent(b,function(a){var b=ddlevelsmenu.subuls[this._master][parseInt(this._pos)];this._istoplevel?ddlevelsmenu.isContained(this,a)||ddlevelsmenu.isContained(b.parentNode,a)||ddlevelsmenu.hidemenu(b.parentNode):this._istoplevel||ddlevelsmenu.isContained(this,a)||ddlevelsmenu.hidemenu(b.parentNode)},"mouseout")},setopacity:function(a,b){if(a.style.opacity=b,"string"!=typeof a.style.opacity){a.style.MozOpacity=b;try{a.filters&&(a.style.filter="progid:DXImageTransform.Microsoft.alpha(opacity="+100*b+")")}catch(a){}}},showmenu:function(a,b,c){if(this.effects.enableswipe||this.effects.enablefade){if(this.effects.enableswipe){var d=a._istoplevel&&"topbar"==c?a._dimensions.submenuh:a._dimensions.submenuw;b.parentNode.style.width=b.parentNode.style.height=0,b.parentNode.style.overflow="hidden"}this.effects.enablefade&&(b.parentNode.style.width=b.offsetWidth+"px",b.parentNode.style.height=b.offsetHeight+"px",this.setopacity(b.parentNode,0)),b._curanimatedegree=0,b.parentNode.style.visibility="visible",b.style.visibility="visible",clearInterval(b._animatetimer),b._starttime=(new Date).getTime(),b._animatetimer=setInterval(function(){ddlevelsmenu.revealmenu(a,b,d,c)},10)}else b.parentNode.style.visibility="visible",b.style.visibility="visible"},revealmenu:function(a,b,c,d){var e=(new Date).getTime()-b._starttime;e<this.effects.duration?(this.effects.enableswipe&&(0==b._curanimatedegree&&(b.parentNode.style[a._istoplevel&&"topbar"==d?"width":"height"]=(a._istoplevel&&"topbar"==d?b.offsetWidth:b.offsetHeight)+"px"),b.parentNode.style[a._istoplevel&&"topbar"==d?"height":"width"]=b._curanimatedegree*c+"px",this.effects.enableslide&&(b.style[a._istoplevel&&"topbar"==d?"top":"left"]=Math.floor((b._curanimatedegree-1)*c)+"px")),this.effects.enablefade&&this.setopacity(b.parentNode,b._curanimatedegree)):(clearInterval(b._animatetimer),this.effects.enableswipe&&(b.parentNode.style.width=b.offsetWidth+"px",b.parentNode.style.height=b.offsetHeight+"px",b.parentNode.style.overflow="visible",this.effects.enableslide&&(b.style.top=0,b.style.left=0)),this.effects.enablefade&&(this.setopacity(b.parentNode,1),b.parentNode.style.filter=""),this.enableshim&&b.FFscrollInfo&&this.positionshim(a,b,d,b.FFscrollInfo.x,b.FFscrollInfo.y)),b._curanimatedegree=(1-Math.cos(e/this.effects.duration*Math.PI))/2},hidemenu:function(a){"undefined"!=typeof a._pos&&(this.css(this.topitems[a._master][parseInt(a._pos)],"selected","remove"),this.enableshim&&this.hideshim()),clearInterval(a.firstChild._animatetimer),a.style.left=0,a.style.top="-1000px",a.style.visibility="hidden",a.firstChild.style.visibility="hidden"},addEvent:function(a,b,c){a.addEventListener?a.addEventListener(c,b,!1):a.attachEvent&&a.attachEvent("on"+c,function(){return b.call(a,window.event)})},domready:function(a){return dd_domreadycheck?void a():(document.addEventListener?document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,!1),a(),dd_domreadycheck=!0},!1):document.attachEvent&&document.documentElement.doScroll&&window==window.top&&function(){if(dd_domreadycheck)return void a();try{document.documentElement.doScroll("left")}catch(a){return void setTimeout(arguments.callee,0)}a(),dd_domreadycheck=!0}(),void(document.attachEvent&&parent.length>0&&this.addEvent(window,function(){a()},"load")))},init:function(a,b){this.standardbody="CSS1Compat"==document.compatMode?document.documentElement:document.body,this.topitemsindex=-1,this.ulindex=-1,this.topmenuids.push(a),this.topitems[a]=[],this.subuls[a]=[],this.hidetimers[a]=[],this.enableshim&&!this.shimadded&&(this.shimmy={},this.shimmy.topshim=this.addshimmy(document.body),this.shimmy.bottomshim=this.addshimmy(document.body),this.shimadded=!0);var c=document.getElementById(a),d=c.getElementsByTagName("a");this.getwindowsize();for(var e=0;e<d.length;e++)if(d[e].getAttribute("rel")){this.topitemsindex++,this.ulindex++;var f=d[e];this.topitems[a][this.topitemsindex]=f;var g=document.getElementById(f.getAttribute("rel")),h=document.createElement("div");h.className="ddsubmenustyle",g.removeAttribute("class"),h.appendChild(g),document.body.appendChild(h),h.style.zIndex=2e3,h._master=a,h._pos=this.topitemsindex,this.addEvent(h,function(){ddlevelsmenu.hidemenu(this)},"click");var i="sidebar"==b?"rightarrowpointer":"downarrowpointer",j="sidebar"==b?this.arrowpointers.rightarrow:this.arrowpointers.downarrow;this.arrowpointers.showarrow.toplevel&&this.addpointer(f,i,j,"sidebar"==b?"before":"after"),this.buildmenu(a,f,g,this.ulindex,!0,b),h.onmouseover=function(){clearTimeout(ddlevelsmenu.hidetimers[this._master][this._pos])},this.addEvent(h,function(a){if(!ddlevelsmenu.isContained(this,a)&&!ddlevelsmenu.isContained(ddlevelsmenu.topitems[this._master][parseInt(this._pos)],a)){var b=this;ddlevelsmenu.enableshim&&ddlevelsmenu.hideshim(),ddlevelsmenu.hidetimers[this._master][this._pos]=setTimeout(function(){ddlevelsmenu.hidemenu(b)},ddlevelsmenu.hideinterval)}},"mouseout");for(var k=g.getElementsByTagName("ul"),l=0;l<k.length;l++){this.ulindex++;var m=k[l].parentNode,n=document.createElement("div");n.appendChild(k[l]),m.appendChild(n),this.arrowpointers.showarrow.sublevel&&this.addpointer(m.getElementsByTagName("a")[0],"rightarrowpointer",this.arrowpointers.rightarrow,"before"),this.buildmenu(a,m,k[l],this.ulindex,!1,b)}}this.addEvent(window,function(){ddlevelsmenu.getwindowsize(),ddlevelsmenu.gettopitemsdimensions()},"resize")},setup:function(a,b){this.domready(function(){ddlevelsmenu.init(a,b)})}};
    </script>