Team:Peking/js/parts.js

From 2014.igem.org

(Difference between revisions)
Line 6: Line 6:
{
{
-
var h1=$("#fpartswcg1").height();
+
var h1=$("#fpartwcg1").height();
-
var h2=$("#fpartswcg2").height();
+
var h2=$("#fpartwcg2").height();
-
var h3=$("#fpartswcg3").height();
+
var h3=$("#fpartwcg3").height();
alert("1:"+h1+" 2:"+h2+" 3:"+h3);     
alert("1:"+h1+" 2:"+h2+" 3:"+h3);     
// var w=$("#mid1right").width();
// var w=$("#mid1right").width();
};
};

Revision as of 16:40, 17 October 2014

$(document).ready(function(){

       partsize();		

});

function partsize() {

var h1=$("#fpartwcg1").height(); var h2=$("#fpartwcg2").height(); var h3=$("#fpartwcg3").height(); alert("1:"+h1+" 2:"+h2+" 3:"+h3);

// var w=$("#mid1right").width(); };