Template:CSS/UT-Tokyo
From 2014.igem.org
(Difference between revisions)
Pineappler (Talk | contribs) |
Pineappler (Talk | contribs) |
||
(6 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
<head> | <head> | ||
- | < | + | <script type="text/javascript"> |
+ | function changeIcon(URL) { | ||
+ | var target = document.getElementsByTagName("link"); | ||
+ | var i = 0; | ||
+ | for(i = 0;i<target.length;i++){ | ||
+ | if(target[i].rel == "shortcut icon"){ | ||
+ | target[i].parentNode.removeChild(target[i]); | ||
+ | break; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | var link = document.createElement("link"); | ||
+ | link.type = "image/x-icon"; | ||
+ | link.rel = "shortcut icon"; | ||
+ | link.href = URL; | ||
+ | |||
+ | document.getElementsByTagName("head")[0].appendChild(link); | ||
+ | } | ||
+ | |||
+ | changeIcon("https://static.igem.org/mediawiki/2014/a/a9/Icon_32.gif"); | ||
+ | |||
+ | </script> | ||
+ | |||
<style type="text/css"> | <style type="text/css"> | ||
Line 375: | Line 397: | ||
} | } | ||
.content-box #box-left{ | .content-box #box-left{ | ||
- | width: | + | width:500px; |
float:left; | float:left; | ||
} | } | ||
.content-box #box-right{ | .content-box #box-right{ | ||
width:400px; | width:400px; | ||
- | float: | + | float:left; |
} | } | ||
#box-right h2, #box-left h2{ | #box-right h2, #box-left h2{ | ||
Line 396: | Line 418: | ||
<script type = "text/javascript" language = "Javascript"> | <script type = "text/javascript" language = "Javascript"> | ||
function randomEcoli(){ | function randomEcoli(){ | ||
- | document.title = " | + | document.title = "TOP | UT-Tokyo 2014"; |
var rand1 = Math.floor(Math.random()*9)+1; | var rand1 = Math.floor(Math.random()*9)+1; | ||
var str = "circle0" + rand1; | var str = "circle0" + rand1; |
Latest revision as of 03:27, 18 October 2014