Team:KAIST-Korea/test
From 2011.igem.org
(Difference between revisions)
Line 3: | Line 3: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | function | + | bg = new Array(); |
+ | bg[0] = "http://unn.campuslife.co.kr/file/Media/News/Gisa/20107/14/image/2010714105315.jpg" | ||
+ | bg[1] = " | ||
+ | |||
+ | function changeBackground(jihan) | ||
{ | { | ||
- | + | if(document.body) | |
+ | { | ||
+ | document.body.background = bg[jihan]; | ||
+ | } | ||
} | } | ||
</script> | </script> | ||
<body> | <body> | ||
- | <input type="button" onclick=" | + | <input type="button" onclick="changeBackground(1)" value="Please Click me!"/> |
</body> | </body> | ||
</head> | </head> | ||
</html> | </html> |
Revision as of 14:36, 12 August 2011