Template:Kyoto/js

From 2014.igem.org

(Difference between revisions)
 
(48 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
<script type="text/javascript">  
<script type="text/javascript">  
-
/**** sandbox用 *****/
+
function adjustHeight() {
-
function MouseOffFirst() {
+
  var HEIGHT = $(window).height() + 100
-
    document.getElementById("top-dms-content").style.display = 'none';
+
  document.getElementById("kyoto-background").style.height = screen.height + 'px';  
-
    document.getElementById("top-magnet-content").style.display = 'none';
+
  HEIGHT = HEIGHT - 260
 +
  document.getElementById("kyoto-side_menu").style.maxHeight = HEIGHT + 'px';
 +
  HEIGHT = HEIGHT - 20
 +
  document.getElementById("kyoto-content_page").style.maxHeight = HEIGHT + 'px';  
}
}
-
 
-
function MouseOnTopDMS() {
 
-
    $("#top-dms-content").stop()
 
-
    $("#top-dms-content").fadeIn("normal");
 
-
}
 
-
 
-
function MouseOffTopDMS() {
 
-
    $("#top-dms-content").stop()
 
-
    $("#top-magnet-content").fadeOut("fast");
 
-
}
 
-
 
-
function MouseOnTopMagnet() {
 
-
    $("#top-magnet-content").fadeIn("normal");
 
-
}
 
-
 
-
function MouseOffTopMagnet() {
 
-
    $("#top-magnet-content").fadeTo("fast", 0);
 
-
}
 
-
 
-
/**** sandbox2用 *****/
 
-
var dropdown=new TINY.dropdown.init("dropdown", {id:'menu', active:'menuhover'});
 
</script>
</script>
</html>
</html>
-
<html><body onload="javascript:MouseOffFirst()"></html>
+
<html><body onload="javascript:adjustHeight()"></html>

Latest revision as of 10:32, 8 October 2014