Team:Goettingen/Team/Gallery
From 2013.igem.org
(Difference between revisions)
m (→BMBF congress in Berlin) |
|||
Line 385: | Line 385: | ||
lightframe.insertBefore(otheralb,showbox); | lightframe.insertBefore(otheralb,showbox); | ||
otheralb.innerHTML = 'Click to go to previous album'; | otheralb.innerHTML = 'Click to go to previous album'; | ||
- | otheralb.onclick = function(){ | + | otheralb.onclick = function(){ currentAlb--; |
- | garPic.src = alb[f-1][ | + | garPic.src = alb[f-1][alb[f-1].length-1].src; |
- | description.innerHTML = alb[f-1][ | + | description.innerHTML = alb[f-1][alb[f-1].length-1].txt; |
- | goleft.onclick = 'go2left('+ f-1 +')' | + | finalize(); |
+ | //goleft.onclick = 'go2left('+ f-1 +')' | ||
}; }} | }; }} | ||
else{ | else{ | ||
Line 419: | Line 420: | ||
lightframe.insertBefore(otheralb,showbox); | lightframe.insertBefore(otheralb,showbox); | ||
otheralb.innerHTML = 'Click to go to next album'; | otheralb.innerHTML = 'Click to go to next album'; | ||
- | otheralb.onclick = function(){ | + | otheralb.onclick = function(){ currentAlb++; |
garPic.src = alb[f+1][0].src; | garPic.src = alb[f+1][0].src; | ||
- | description.innerHTML = alb[f+1][0].txt; | + | description.innerHTML = alb[f+1][0].txt; |
+ | finalize(); | ||
//goleft.onclick = 'go2left('+ f+1 +')'; | //goleft.onclick = 'go2left('+ f+1 +')'; | ||
lightframe.removeChild(otheralb); | lightframe.removeChild(otheralb); |
Revision as of 20:01, 16 September 2013