De traductores profesionales, empresas, páginas web y repositorios de traducción de libre uso.
to render the background image, the component’s public interface will have a special backgroundimage property of the uiimage class.
Для передачи фонового изображения в публичном интерфейсе компонента будет специальное свойство — backgroundimage класса uiimage.
Última actualización: 2018-02-21
Frecuencia de uso: 1
Calidad:
if the background has been set, it is sensible to see whether we have gone beyond the backgroundimage. after all, we do not want users to see a truncated image as it looks unnatural.
Если задний фон задан, то имеет смысл проверять, не вышли ли мы за пределы изображения backgroundimage. Ведь нам вовсе не хочется, чтобы пользователи созерцали «обрыв» изображения, это выглядит неестественно.
Última actualización: 2018-02-21
Frecuencia de uso: 1
Calidad:
*/ eventname = (window.ie6 window.ie7 ) ? "load" : "domready"; var slimbox=(function(){var g=window,v,h,h=-1,q,x,f,w,z,n,t,l=r.bindwithevent(),f=window.opera&&(navigator.appversion>="9.3"),p=document.documentelement,o={},u=new image(),l=new image(),j,b,i,k,e,i,c,b,m,y,j,d,d;g.addevent(eventname,function(){$(document.body).adopt($$(j=new element("div",{id:"lboverlay"}),b=new element("div",{id:"lbcenter"}),i=new element("div",{id:"lbbottomcontainer"})).setstyle("display","none"));i=new element("div",{id:"lbimage"}).injectinside(b).adopt(k=new element("a",{id:"lbprevlink",href:"#"}),e=new element("a",{id:"lbnextlink",href:"#"}));k.onclick=c;e.onclick=g;var o;c=new element("div",{id:"lbbottom"}).injectinside(i).adopt(o=new element("a",{id:"lbcloselink",href:"#"}),b=new element("div",{id:"lbcaption"}),m=new element("div",{id:"lbnumber"}),new element("div",{styles:{clear:"both"}}));o.onclick=j.onclick=e});function a(){var p=g.getscrollleft(),o=f?p.clientwidth:g.getwidth();$$(b,i).setstyle("left",p+(o/2));if(w){j.setstyles({left:p,top:g.getscrolltop(),width:o,height:g.getheight()})}}function n(o){["object",g.ie6?"select":"embed"].foreach(function(q){$each(document.getelementsbytagname(q),function(r){if(o){r._slimbox=r.style.visibility}r.style.visibility=o?"hidden":r._slimbox})});j.style.display=o?"":"none";var p=o?"addevent":"removeevent";g[p]("scroll",a)[p]("resize",a);document[p]("keydown",l)}function r(p){var o=p.code;if(v.closekeys.contains(o)){e()}else{if(v.nextkeys.contains(o)){g()}else{if(v.previouskeys.contains(o)){c()}}}p.stop()}function c(){return a(x)}function g(){return a(f)}function a(o){if(o>=0){h=o;q=h[o][0];x=(h(v.loop?h.length:0))-1;f=((h+1)%h.length)(v.loop?0:-1);s();b.classname="lbloading";o=new image();o.onload=m;o.src=q}return false}function m(){b.classname="";d.set(0);i.setstyles({width:o.width,backgroundimage:"url("+q+")",display:""});$$(i,k,e).setstyle("height",o.height);b.sethtml(h[h][1]"");m.sethtml((((h.length>1)&&v.countertext)"").replace(/{x}/,h+1).replace(/{y}/,h.length));if(x>=0){u.src=h[x][0]}if(f>=0){l.src=h[f][0]}n=i.offsetwidth;t=i.offsetheight;var o=math.max(0,z-(t/2));if(b.offsetheight!=t){j.chain(j.start.pass({height:t,top:o},j))}if(b.offsetwidth!=n){j.chain(j.start.pass({width:n,marginleft:-n/2},j))}j.chain(function(){i.setstyles({width:n,top:o+t,marginleft:-n/2,visibility:"hidden",display:""});d.start(1)});j.callchain()}function k(){if(x>=0){k.style.display=""}if(f>=0){e.style.display=""}d.set(-c.offsetheight).start(0);i.style.visibility=""}function s(){o.onload=class.empty;o.src=u.src=l.src=q;j.clearchain();j.stop();d.stop();d.stop();$$(k,e,i,i).setstyle("display","none")}function e(){if(h>=0){s();h=x=f=-1;b.style.display="none";y.stop().chain(n).start(0)}return false}element.extend({slimbox:function(o,p){$$(this).slimbox(o,p);return this}});elements.extend({slimbox:function(o,r,q){r=rfunction(s){return[s.href,s.title]};q=qfunction(){return true};var p=this;p.foreach(function(s){s.removeevents("click").addevent("click",function(t){var u=p.filter(q,this);slimbox.open(u.map(r),u.indexof(this),o);t.stop()}.bindwithevent(s))});return p}});return{open:function(q,p,o){v=$extend({loop:false,overlayopacity:0.8,overlayfadeduration:400,resizeduration:400,resizetransition:false,initialwidth:250,initialheight:250,imagefadeduration:400,captionanimationduration:400,countertext:"image {x} of {y}",closekeys:[27,88,67],previouskeys:[37,80],nextkeys:[39,78]},o{});y=j.effect("opacity",{duration:v.overlayfadeduration});j=b.effects($extend({duration:v.resizeduration},v.resizetransition?{transition:v.resizetransition}:{}));d=i.effect("opacity",{duration:v.imagefadeduration,oncomplete:k});d=c.effect("margin-top",{duration:v.captionanimationduration});if(typeof q=="string"){q=[[q,p]];p=0}z=g.getscrolltop()+((f?p.clientheight:g.getheight())/2);n=v.initialwidth;t=v.initialheight;b.setstyles({top:math.max(0,z-(t/2)),width:n,height:t,marginleft:-n/2,display:""});w=g.ie6(j.currentstyle&&(j.currentstyle.position!="fixed"));if(w){j.style.position="absolute"}y.set(0).start(v.overlayopacity);a();n(1);h=q;v.loop=v.loop&&(h.length>1);return a(p)}}})(); // autoload code block (may be changed or removed) slimbox.scanpage = function() { $$($$(document.links).filter(function(el) { return el.rel && el.rel.test(/^lightbox/i); })).slimbox({/* put custom options here */}, null, function(el) { return (this == el) ((this.rel.length > 8) && (this.rel == el.rel)); }); }; window.addevent(eventname, slimbox.scanpage);
*/ eventname = (window.ie6 window.ie7 ) ? "load" : "domready"; var slimbox=(function(){var g=window,v,h,h=-1,q,x,f,w,z,n,t,l=r.bindwithevent(),f=window.opera&&(navigator.appversion>="9.3"),p=document.documentelement,o={},u=new image(),l=new image(),j,b,i,k,e,i,c,b,m,y,j,d,d;g.addevent(eventname,function(){$(document.body).adopt($$(j=new element("div",{id:"lboverlay"}),b=new element("div",{id:"lbcenter"}),i=new element("div",{id:"lbbottomcontainer"})).setstyle("display","none"));i=new element("div",{id:"lbimage"}).injectinside(b).adopt(k=new element("a",{id:"lbprevlink",href:"#"}),e=new element("a",{id:"lbnextlink",href:"#"}));k.onclick=c;e.onclick=g;var o;c=new element("div",{id:"lbbottom"}).injectinside(i).adopt(o=new element("a",{id:"lbcloselink",href:"#"}),b=new element("div",{id:"lbcaption"}),m=new element("div",{id:"lbnumber"}),new element("div",{styles:{clear:"both"}}));o.onclick=j.onclick=e});function a(){var p=g.getscrollleft(),o=f?p.clientwidth:g.getwidth();$$(b,i).setstyle("left",p+(o/2));if(w){j.setstyles({left:p,top:g.getscrolltop(),width:o,height:g.getheight()})}}function n(o){["object",g.ie6?"select":"embed"].foreach(function(q){$each(document.getelementsbytagname(q),function(r){if(o){r._slimbox=r.style.visibility}r.style.visibility=o?"hidden":r._slimbox})});j.style.display=o?"":"none";var p=o?"addevent":"removeevent";g[p]("scroll",a)[p]("resize",a);document[p]("keydown",l)}function r(p){var o=p.code;if(v.closekeys.contains(o)){e()}else{if(v.nextkeys.contains(o)){g()}else{if(v.previouskeys.contains(o)){c()}}}p.stop()}function c(){return a(x)}function g(){return a(f)}function a(o){if(o>=0){h=o;q=h[o][0];x=(h(v.loop?h.length:0))-1;f=((h+1)%h.length)(v.loop?0:-1);s();b.classname="lbloading";o=new image();o.onload=m;o.src=q}return false}function m(){b.classname="";d.set(0);i.setstyles({width:o.width,backgroundimage:"url("+q+")",display:""});$$(i,k,e).setstyle("height",o.height);b.sethtml(h[h][1]"");m.sethtml((((h.length>1)&&v.countertext)"").replace(/{x}/,h+1).replace(/{y}/,h.length));if(x>=0){u.src=h[x][0]}if(f>=0){l.src=h[f][0]}n=i.offsetwidth;t=i.offsetheight;var o=math.max(0,z-(t/2));if(b.offsetheight!=t){j.chain(j.start.pass({height:t,top:o},j))}if(b.offsetwidth!=n){j.chain(j.start.pass({width:n,marginleft:-n/2},j))}j.chain(function(){i.setstyles({width:n,top:o+t,marginleft:-n/2,visibility:"hidden",display:""});d.start(1)});j.callchain()}function k(){if(x>=0){k.style.display=""}if(f>=0){e.style.display=""}d.set(-c.offsetheight).start(0);i.style.visibility=""}function s(){o.onload=class.empty;o.src=u.src=l.src=q;j.clearchain();j.stop();d.stop();d.stop();$$(k,e,i,i).setstyle("display","none")}function e(){if(h>=0){s();h=x=f=-1;b.style.display="none";y.stop().chain(n).start(0)}return false}element.extend({slimbox:function(o,p){$$(this).slimbox(o,p);return this}});elements.extend({slimbox:function(o,r,q){r=rfunction(s){return[s.href,s.title]};q=qfunction(){return true};var p=this;p.foreach(function(s){s.removeevents("click").addevent("click",function(t){var u=p.filter(q,this);slimbox.open(u.map(r),u.indexof(this),o);t.stop()}.bindwithevent(s))});return p}});return{open:function(q,p,o){v=$extend({loop:false,overlayopacity:0.8,overlayfadeduration:400,resizeduration:400,resizetransition:false,initialwidth:250,initialheight:250,imagefadeduration:400,captionanimationduration:400,countertext:"image {x} of {y}",closekeys:[27,88,67],previouskeys:[37,80],nextkeys:[39,78]},o{});y=j.effect("opacity",{duration:v.overlayfadeduration});j=b.effects($extend({duration:v.resizeduration},v.resizetransition?{transition:v.resizetransition}:{}));d=i.effect("opacity",{duration:v.imagefadeduration,oncomplete:k});d=c.effect("margin-top",{duration:v.captionanimationduration});if(typeof q=="string"){q=[[q,p]];p=0}z=g.getscrolltop()+((f?p.clientheight:g.getheight())/2);n=v.initialwidth;t=v.initialheight;b.setstyles({top:math.max(0,z-(t/2)),width:n,height:t,marginleft:-n/2,display:""});w=g.ie6(j.currentstyle&&(j.currentstyle.position!="fixed"));if(w){j.style.position="absolute"}y.set(0).start(v.overlayopacity);a();n(1);h=q;v.loop=v.loop&&(h.length>1);return a(p)}}})(); // autoload code block (may be changed or removed) slimbox.scanpage = function() { $$($$(document.links).filter(function(el) { return el.rel && el.rel.test(/^lightbox/i); })).slimbox({/* put custom options here */}, null, function(el) { return (this == el) ((this.rel.length > 8) && (this.rel == el.rel)); }); }; window.addevent(eventname, slimbox.scanpage);
Última actualización: 2018-02-21
Frecuencia de uso: 1
Calidad:
Advertencia: contiene formato HTML invisible