Biomod/2012/TeamSendaiA/Top: Difference between revisions
(New page: http://openwetware.org/images/e/e6/%E4%BD%9C%E8%80%85.jpg http://openwetware.org/wiki/Image:%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB.jpg <html> <head></head> <script type="text/javascript">...) |
No edit summary |
||
Line 1: | Line 1: | ||
<html> | |||
<head> | |||
</head> | |||
<html> | <body> | ||
<head></head> | <script language="JavaScript"> | ||
<script | |||
var imgs = new Array(); | var imgs = new Array(); | ||
imgs[0] = " | imgs[0] = "http://openwetware.org/wiki/Image:Sendai_2012_title.jpg"; | ||
imgs[1] = "Image: | imgs[1] = "http://openwetware.org/wiki/Image:Sendai_2012_editor.jpg"; | ||
"; | |||
i = 0; | i = 0; | ||
function Blend(){ | function Blend(){ | ||
Line 17: | Line 15: | ||
} | } | ||
onload = function(){setInterval(Blend,5*1000)} | onload = function(){setInterval(Blend,5*1000)} | ||
document.write("いや~信州は寒いですな~。") | |||
</script> | </script> | ||
<img src=" | <img src="http://openwetware.org/wiki/Image:Sendai_2012_editor.jpg" id="imgframe" style="filter:blendTrans(duration=2);"> | ||
</body> | |||
</html> | |||
<HTML> | |||
<HEAD> | |||
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript"> | |||
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> | |||
<TITLE>blendTrans</TITLE> | |||
<SCRIPT TYPE="text/javascript"> | |||
<!-- | |||
flag = 0 //画像を変更させるためのフラグ | |||
function Blend(id){ | |||
document.all.item(id).filters.blendTrans.apply(); | |||
if(flag == 0){ | |||
[[Image:Sendai_2012_title.jpg]] | |||
document.all.item(id).src="http://openwetware.org/wiki/Image:Sendai_2012_title.jpg"; | |||
flag = 1; | |||
}else{ | |||
[[Image:Sendai_2012_editor.jpg]] | |||
document.all.item(id).src="http://openwetware.org/wiki/Image:Sendai_2012_editor.jpg"; | |||
flag = 0; | |||
} | |||
document.all.item(id).filters.blendTrans.play(); | |||
} | |||
//--> | |||
</SCRIPT> | |||
</HEAD> | |||
<BODY> | |||
<FORM> | |||
<IMG ID="blend1" SRC="Image1.jpg" STYLE="filter:blendTrans(duration=2);"> | |||
<INPUT TYPE="BUTTON" VALUE=" GO " onClick='Blend("blend1")'> | |||
</FORM> | |||
</BODY> | |||
</ | </HTML> | ||
</ |
Revision as of 00:50, 22 August 2012
<html> <head> </head> <body> <script language="JavaScript"> var imgs = new Array(); imgs[0] = "http://openwetware.org/wiki/Image:Sendai_2012_title.jpg"; imgs[1] = "http://openwetware.org/wiki/Image:Sendai_2012_editor.jpg"; i = 0; function Blend(){ document.getElementById("imgframe").filters.blendTrans.apply(); document.all.item("imgframe").src = imgs[i++]; document.getElementById("imgframe").filters.blendTrans.play(); if(i>=imgs.length) i=0; } onload = function(){setInterval(Blend,5*1000)}
document.write("いや~信州は寒いですな~。") </script> <img src="http://openwetware.org/wiki/Image:Sendai_2012_editor.jpg" id="imgframe" style="filter:blendTrans(duration=2);"> </body> </html>
<html> <HEAD> <META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <TITLE>blendTrans</TITLE> <SCRIPT TYPE="text/javascript"> <!-- flag = 0 //画像を変更させるためのフラグ function Blend(id){ document.all.item(id).filters.blendTrans.apply(); if(flag == 0){ [[Image:Sendai_2012_title.jpg]] document.all.item(id).src="http://openwetware.org/wiki/Image:Sendai_2012_title.jpg"; flag = 1; }else{ [[Image:Sendai_2012_editor.jpg]] document.all.item(id).src="http://openwetware.org/wiki/Image:Sendai_2012_editor.jpg"; flag = 0; } document.all.item(id).filters.blendTrans.play(); } //--> </SCRIPT> </HEAD> <BODY>
<FORM>
<IMG ID="blend1" SRC="Image1.jpg" STYLE="filter:blendTrans(duration=2);">
<INPUT TYPE="BUTTON" VALUE=" GO " onClick='Blend("blend1")'>
</FORM>
</BODY>
</html>