Difference between revisions of "Template:NYU Shanghai"
Line 179: | Line 179: | ||
document.getElementById("content").onscroll=function(){ | document.getElementById("content").onscroll=function(){ | ||
document.getElementById("nav").scrollLeft = document.getElementById("content").scrollLeft; | document.getElementById("nav").scrollLeft = document.getElementById("content").scrollLeft; | ||
+ | document.getElementById("testdiv").style.backgroundColor = "blue"; | ||
}; | }; | ||
function reset() { | function reset() { | ||
Line 356: | Line 357: | ||
</div> | </div> | ||
<div style="width: 982px; height: 80px;"></div> | <div style="width: 982px; height: 80px;"></div> | ||
+ | <div id="testdiv" style="height: 100px; width: 100px; background-color: lime;"></div> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 03:18, 25 August 2015