Template:Kyoto/js

From 2014.igem.org

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

Latest revision as of 10:32, 8 October 2014