From 2012.igem.org
(Difference between revisions)
|
|
Line 227: |
Line 227: |
| }, | | }, |
| init:function(c,a){ | | init:function(c,a){ |
- | var b=q,d=v('body')[0],e,f,j;
| |
- | a=u(a,this.defaults);
| |
- | if(t&&t<7){
| |
- | a.position='absolute'
| |
- | }
| |
- | b.opt=a;
| |
- | e=a.fadeAfter;
| |
- | f=b.img=o.createElement('img');
| |
- | f.id="bgMax";
| |
- | s(f,{zIndex:a.zIndex,position:a.position});
| |
- | j=navigator.userAgent.match(/Firefox.(\d+(\.\d+))/);
| |
- | if(j&&parseFloat(j[1])<3){
| |
- | s(d,{zIndex:0,position:'relative',top:0,left:0});
| |
- | f.hack='-'+a.ffHack}d.insertBefore(f,d.childNodes[0]);
| |
- | f.onload=b.show;
| |
- | if(e!==false){
| |
- | p(f,0);
| |
- | if(e){
| |
- | setTimeout(function(){b.fadeIt=1},e)
| |
- | }else{
| |
- | b.fadeIt=1
| |
- | }
| |
- | }
| |
- | y(r,'resize',b.redim);
| |
- | f.src=c
| |
| } | | } |
| }; | | }; |
Revision as of 11:53, 12 July 2012