Gifu/head
From 2014.igem.org
(Difference between revisions)
Line 16: | Line 16: | ||
</style> | </style> | ||
- | <script > | + | <script type="text/javascript"> |
- | + | //画像の先読み | |
- | + | var imgObj = new Image(); | |
- | + | imgObj.src = "https://static.igem.org/mediawiki/2014/f/f9/Menu_up.png"; | |
- | + | //画像の差し替え | |
- | + | function changeMapImage(imgPath) { | |
- | + | document.getElementById('map').src = imgPath; | |
- | function | + | |
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | |||
</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=" | + | 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