Template:CSS/UT-Tokyo/Counter

From 2014.igem.org

(Difference between revisions)
 
(One intermediate revision not shown)
Line 56: Line 56:
function setMouseOver(){
function setMouseOver(){
document.title = "σ-Re Counter | UT-Tokyo 2014";
document.title = "σ-Re Counter | UT-Tokyo 2014";
-
var node = document.getElementById("jMenu");
 
-
for(var i = 0;i<node.childNodes.length;i++){
 
-
if(node.childNodes[i].nodeType == 1){
 
-
node.childNodes[i].onmouseover = function(){
 
-
img = this.getElementsByTagName('img');
 
-
if(img[0]){
 
-
var tmp = img[0].src;
 
-
img[0].src = img[0].alt;
 
-
img[0].alt = tmp;
 
-
}
 
-
}
 
-
node.childNodes[i].onmouseout = function(){
 
-
img = this.getElementsByTagName('img');
 
-
if(img[0]){
 
-
var tmp = img[0].src;
 
-
img[0].src = img[0].alt;
 
-
img[0].alt = tmp;
 
-
}
 
-
}
 
-
}
 
-
}
 
-
var node = document.getElementById("jMenu2");
 
-
for(var i = 0;i<node.childNodes.length;i++){
 
-
if(node.childNodes[i].nodeType == 1){
 
-
node.childNodes[i].onmouseover = function(){
 
-
img = this.getElementsByTagName('img');
 
-
if(img[0]){
 
-
var tmp = img[0].src;
 
-
img[0].src = img[0].alt;
 
-
img[0].alt = tmp;
 
-
}
 
-
}
 
-
node.childNodes[i].onmouseout = function(){
 
-
img = this.getElementsByTagName('img');
 
-
if(img[0]){
 
-
var tmp = img[0].src;
 
-
img[0].src = img[0].alt;
 
-
img[0].alt = tmp;
 
-
}
 
-
}
 
-
}
 
-
}
 
}
}
</script>
</script>
Line 552: Line 510:
list-style-image:none;
list-style-image:none;
position:absolute;
position:absolute;
-
top:850px;
+
top:800px;
left:50%;
left:50%;
margin-left:-375px;
margin-left:-375px;

Latest revision as of 01:45, 18 October 2014