Team:Heidelberg LSL/Check out
From 2012hs.igem.org
(Difference between revisions)
Line 58: | Line 58: | ||
// Return the value | // Return the value | ||
return value; | return value; | ||
+ | } | ||
+ | |||
+ | function getURL(varname){ | ||
+ | |||
+ | var url_curr = ""; | ||
+ | switch (varname) { | ||
+ | |||
+ | case SunnyB: url_curr = 'https://static.igem.org/mediawiki/2012hs/f/fd/SunnyB.png'; | ||
+ | break; | ||
+ | |||
+ | |||
+ | } | ||
+ | |||
+ | |||
} | } | ||
</script> | </script> | ||
Line 71: | Line 85: | ||
var name = getValue("name"); | var name = getValue("name"); | ||
- | document.write("<center><img src=' | + | var url = getURL(name); |
- | document.write( | + | document.write("<center><img src='"); |
- | document.write(" | + | document.write(url); |
+ | document.write("' /></center>"); | ||
</script> | </script> | ||
Revision as of 13:04, 11 June 2012