diff --git a/js/mediaboxAdv-1.3.4b.js b/js/mediaboxAdv-1.3.4b.js index a5e2628..8f753ed 100644 --- a/js/mediaboxAdv-1.3.4b.js +++ b/js/mediaboxAdv-1.3.4b.js @@ -5,8 +5,11 @@ based on Slimbox v1.64 - The ultimate lightweight Lightbox clone (c) 2007-2008 Christophe Beyls MIT-style license. -*/ + MiniBoardNano modifications : + Tom Canac + Uncomment lines 208 and 866 to desactivate the rigth click (take care... it's a pain in the ass for the end-usernd don't protect you at all ! (maj+rigth click make it useless)) +*/ var Mediabox; (function() { @@ -205,7 +208,7 @@ var Mediabox; var links = this; links.addEvent('contextmenu', function(e){ - if (this.toString().match(/\.gif|\.jpg|\.jpeg|\.png/i)) e.stop(); + /*if (this.toString().match(/\.gif|\.jpg|\.jpeg|\.png/i)) e.stop();*/ }); links.removeEvents("click").addEvent("click", function() { @@ -861,7 +864,7 @@ var Mediabox; preload.width = mediaWidth; } if (Browser.Engine.trident) preload = document.id(preload); - preload.addEvent('mousedown', function(e){ e.stop(); }).addEvent('contextmenu', function(e){ e.stop(); }); + /*preload.addEvent('mousedown', function(e){ e.stop(); }).addEvent('contextmenu', function(e){ e.stop(); });*/ image.setStyles({backgroundImage: "none", display: ""}); preload.inject(image); } diff --git a/templates/rounded.html b/templates/rounded.html index 6a295d2..c5188ae 100644 --- a/templates/rounded.html +++ b/templates/rounded.html @@ -107,17 +107,13 @@ body > nav { #gallery li:hover img { -webkit-box-shadow:0 0 5px 0 #000; box-shadow:0 0 5px 0 #000; - -webkit-transition:all .3s ease; - -moz-transition:all .3s ease; - -ms-transition:all .3s ease; - -o-transition:all .3s ease; - transition:all .3s ease; } -#gallery em, +#gallery li:hover img, +#gallery li img, +#gallery li em, #gallery li:hover em { -webkit-transition:all .2s ease-in; - -moz-transition:all .2s ease-in; -ms-transition:all .2s ease-in; -o-transition:all .2s ease-in; transition:all .2s ease-in; @@ -125,8 +121,8 @@ body > nav { #gallery em { position:absolute; - top:0; - bottom:0; + top:-1px; + bottom:-1px; zoom:1; width:100%; padding:40% 0; @@ -136,8 +132,10 @@ body > nav { font-size:2.5rem; font-style:italic; color:#FFF; + margin: -0.5px 0 0 -0.5px; + border:1px solid black; opacity:0; - background:rgba(0,0,0,.9); + background:#000; filter:alpha(opacity=0); } @@ -147,12 +145,6 @@ body > nav { filter:alpha(opacity=1); } -#gallery li:hover img { - zoom:1; - opacity:0; - filter:alpha(opacity=0); -} - footer { margin:25px 0; text-align:center;