Team:Uppsala/Project Notebook

From 2014.igem.org

(Difference between revisions)
Line 7: Line 7:
document.getElementById("tab2").innerHTML = '<p>hello</p>';
document.getElementById("tab2").innerHTML = '<p>hello</p>';
-
document.getElementById("tab4").innerHTML = '<p></p><table class = "calendar"><tr><td onlick = "goleft()">left</td><td>week</td><td>right</td></tr></table>';
+
document.getElementById("tab4").innerHTML = '<p></p><table class = "calendar"><tr><td id = "calleft" onlick = "goleft()">left</td><td>week</td><td>right</td></tr></table>';
</script>
</script>
Line 14: Line 14:
  function goleft() {
  function goleft() {
-
         var content = document.getElementsByClassName('calendar');
+
         document.getElementById("calleft").style.color = "blue";
-
        content.style.background-color = ff00aa;  
+
}
}

Revision as of 16:24, 22 August 2014

Home

Failed to load tracking. JS is probably not enabled