Team:Goettingen/Team/Gallery
From 2013.igem.org
(Difference between revisions)
Line 212: | Line 212: | ||
- | + | //下一图片按钮 | |
+ | nextfoto = document.createElement('img'); | ||
+ | nextfoto.src = 'https://static.igem.org/mediawiki/2013/b/b0/Direction.png'; | ||
+ | with(nextfoto.style){ | ||
+ | position = 'absolute'; | ||
+ | right = '-87px'; | ||
+ | clip = 'rect(0px,29px,50px,0px)'; | ||
+ | } | ||
+ | showbox.insertBefore(nextfoto,closebtn); | ||
Line 235: | Line 243: | ||
closebtn.style.right = '0px'; | closebtn.style.right = '0px'; | ||
lightframe.style.left = '0px'; | lightframe.style.left = '0px'; | ||
- | prefoto.style.top = (garPic.height - prefoto.height)/2 + 'px'; | + | nextfoto.style.top = prefoto.style.top = (garPic.height - prefoto.height)/2 + 'px'; |
},100); | },100); | ||
} | } |
Revision as of 15:20, 22 July 2013