Team:KAIST-Korea/Results/Gallery2
From 2011.igem.org
(Difference between revisions)
(Created page with "{{:Team:KAIST-Korea/jihan}} __NOTOC__ <html> <head> <style type="text/css"> #TagHome{ position: absolute; font-family:Bell MT; font-size:12pt; le...") |
|||
Line 32: | Line 32: | ||
</head> | </head> | ||
<body> | <body> | ||
- | <!-- | + | |
+ | <!-- Start of the javascript used to run the Gallery --> | ||
+ | <script type="text/javascript"> | ||
+ | // Gallery script. | ||
+ | // With image cross fade effect for those browsers that support it. | ||
+ | // Script copyright (C) 2004 www.cryer.co.uk. | ||
+ | // Script is free to use provided this copyright header is included. | ||
+ | // Slightly modified by Ji Han H, an undergraduate student at the Bio and Brain Engineering Department at KAIST. | ||
+ | function LoadGallery(pictureName, picturename2, imageFile,titleCaption,captionText,contentCaption, captionText2) | ||
+ | { | ||
+ | var picture = document.getElementById(pictureName); | ||
+ | var picture2 = document.getElementById(picturename2); | ||
+ | <!-- picture --> | ||
+ | if (picture.filters) | ||
+ | { | ||
+ | picture.style.filter="blendTrans(duration=1)"; | ||
+ | picture.filters.blendTrans.Apply(); | ||
+ | } | ||
+ | picture.src = imageFile; | ||
+ | if (picture.filters) | ||
+ | { | ||
+ | picture.filters.blendTrans.Play(); | ||
+ | } | ||
+ | document.getElementById(titleCaption).innerHTML=captionText; | ||
+ | <!-- picture 2--> | ||
+ | if (picture2.filters) | ||
+ | { | ||
+ | picture2.style.filter="blendTrans(duration=1)"; | ||
+ | picture2.filters.blendTrans.Apply(); | ||
+ | } | ||
+ | picture2.src = imageFile; | ||
+ | if (picture2.filters) | ||
+ | { | ||
+ | picture2.filters.blendTrans.Play(); | ||
+ | } | ||
+ | document.getElementById(contentCaption).innerHTML=captionText2; | ||
+ | } | ||
+ | </script> | ||
+ | <!-- End of the javascript used to implement the gallery--> | ||
+ | |||
</body> | </body> | ||
</html> | </html> |
Revision as of 14:05, 11 August 2011