Template:Kyoto/js

From 2014.igem.org

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

Latest revision as of 10:32, 8 October 2014