Team:Goettingen/suplement/scripts

From 2013.igem.org

(Difference between revisions)
Line 119: Line 119:
}
}
-
/*
+
 
-
function illus(left,top,name,text){
+
 
 +
function illus(object,name,text){
     var obj = document.getElementById("illus");
     var obj = document.getElementById("illus");
-
     obj.innerHTML = '<h2>' + name + '</h2>';
+
     obj.innerHTML = '<h2 style="color:white" >' + name + '</h2>';
-
     obj.innerHTML += '<p>'+ text + '</p>';
+
     var coords = object.coords;
 +
    var left = coords.substring(0,coords.indexOf(','));
 +
    coords = coords.substring(coords.indexOf(',')+1);
 +
    var top = coords.substring(0,coords.indexOf(','));
 +
    coords = coords.substring(coords.indexOf(',')+1);
 +
    var width = coords.substring(0,coords.indexOf(',')) - left;
 +
    coords = coords.substring(coords.indexOf(',')+1);
     obj.style.left = left + 'px';
     obj.style.left = left + 'px';
-
     obj.style.marginTop = top + 'px';
+
     obj.style.marginTop = coords - 40  + 'px';
 +
    obj.style.width = width -20 + 'px';
 +
    obj.onmouseover = function(){obj.style.display = 'block';}
 +
    obj.style.height = 40 + 'px';
     obj.style.display = 'block';
     obj.style.display = 'block';
 +
 
}
}
-
*/
+
 
 +
 
 +
 
function hideillus(){
function hideillus(){
     var obj = document.getElementById("illus");
     var obj = document.getElementById("illus");

Revision as of 15:46, 28 June 2013