Gifu/head

From 2014.igem.org

(Difference between revisions)
Line 16: Line 16:
</style>
</style>
-
<script >
+
<script type="text/javascript">
-
 
+
//画像の先読み
-
OnMouse = new Array();
+
var imgObj = new Image();
-
    for(i = 0; i < 4; i++) {
+
imgObj.src = "https://static.igem.org/mediawiki/2014/f/f9/Menu_up.png";
-
    OnMouse[i] = new Image();
+
//画像の差し替え
-
    OnMouse[i].src = "https://static.igem.org/mediawiki/2014/f/f9/Menu_up.png" + i + ".png"
+
function changeMapImage(imgPath) {
-
    }
+
document.getElementById('map').src = imgPath;
-
function cImg(flag) {
+
-
    var imgEle = document.getElementById('imgmap');
+
-
    imgEle.src = OnMouse[flag].src;
+
-
    return false;
+
}
}
-
 
</script>
</script>
 +
 +
 +
 +
</head>
</head>
<body>
<body>
Line 37: Line 36:
<map name="map" id="map">
<map name="map" id="map">
   <area  shape="circle" coords="90,70,50" href="https://2014.igem.org/Team:Gifu"  
   <area  shape="circle" coords="90,70,50" href="https://2014.igem.org/Team:Gifu"  
-
onMouseOver="cImg(https://static.igem.org/mediawiki/2014/f/f9/Menu_up.png)" onMouseOut="cImg(https://static.igem.org/mediawiki/2013/c/c6/Menu_hover_home.png)" alt="home"/>
+
onMouseOver="changeMapImage('https://static.igem.org/mediawiki/2014/f/f9/Menu_up.png')" onMouseOut="changeMapImage('https://static.igem.org/mediawiki/2013/c/c6/Menu_hover_home.png')" alt="home"/>
  <area shape="circle" coords="210,105,50" href="https://2014.igem.org/Team:Gifu/Team"  onMouseOver="paintRol('rollover',2)" onMouseOut="paintRol('rollover',0)" alt="team"/>  
  <area shape="circle" coords="210,105,50" href="https://2014.igem.org/Team:Gifu/Team"  onMouseOver="paintRol('rollover',2)" onMouseOut="paintRol('rollover',0)" alt="team"/>  
  <area shape="circle" coords="335,120,50" href="https://2014.igem.org/Team:Gifu/Project"  onMouseOver="paintRol('rollover',3)" onMouseOut="paintRol('rollover',0)" alt="project"/>  
  <area shape="circle" coords="335,120,50" href="https://2014.igem.org/Team:Gifu/Project"  onMouseOver="paintRol('rollover',3)" onMouseOut="paintRol('rollover',0)" alt="project"/>  

Revision as of 05:42, 31 August 2014

head home team project note result more