Team:KAIST-Korea/test
From 2011.igem.org
(Difference between revisions)
Line 3: | Line 3: | ||
<html> | <html> | ||
<head> | <head> | ||
+ | <style type="text/css"> | ||
+ | #Slideshow | ||
+ | { | ||
+ | opacity: 1.0; | ||
+ | -moz-opacity: 1.0; | ||
+ | -khtml-opacity: 1.0; | ||
+ | filter: alpha(opacity=100); | ||
+ | } | ||
+ | </style> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
function changeBackground(jihan) | function changeBackground(jihan) | ||
Line 23: | Line 18: | ||
if(jihan == 0) | if(jihan == 0) | ||
{ | { | ||
- | |||
document.body.style.background="url('http://imgnews.jknews.co.kr/photo/2009/09/24/20090924_12537820151.jpg') no-repeat center top" | document.body.style.background="url('http://imgnews.jknews.co.kr/photo/2009/09/24/20090924_12537820151.jpg') no-repeat center top" | ||
} | } | ||
Line 37: | Line 31: | ||
- | <!-- Testing | + | <!-- Testing --> |
- | + | function SetOpa(Opa) | |
- | function | + | { |
- | + | document.body.style.opacity = Opa; | |
- | + | document.body.style.MozOpacity = Opa; | |
- | + | document.body.style.KhtmlOpacity = Opa; | |
- | + | document.body.style.filter = 'alpha(opacity=' + (Opa * 100) + ');'; | |
- | + | ||
- | document. | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | function fadeOut() | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | function | + | |
{ | { | ||
- | + | for (i = 0; i <= 1; i += 0.01) | |
- | + | ||
{ | { | ||
- | + | setTimeout("SetOpa(" + (1 - i) +")", i * duration); | |
- | + | ||
} | } | ||
- | + | setTimeout("FadeIn()", (duration + hidtime)); | |
- | + | } | |
+ | |||
+ | function FadeIn() | ||
+ | { | ||
+ | for (i = 0; i <= 1; i += 0.01) | ||
{ | { | ||
- | + | setTimeout("SetOpa(" + i +")", i * duration); | |
} | } | ||
- | + | setTimeout("fadeOut()", (duration + showtime)); | |
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
Revision as of 19:02, 12 August 2011