Difference between revisions of "Template:NYU Shanghai"
Line 180: | Line 180: | ||
//document.getElementById("nav").scrollLeft = document.getElementById("content").scrollLeft; | //document.getElementById("nav").scrollLeft = document.getElementById("content").scrollLeft; | ||
document.getElementById("testdiv").style.backgroundColor = "blue"; | document.getElementById("testdiv").style.backgroundColor = "blue"; | ||
+ | document.getElementById("testdivP").innerHTML = document.scrollLeft; | ||
}; | }; | ||
function reset() { | function reset() { | ||
Line 357: | Line 358: | ||
</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; margin: 0 auto;"></div> | + | <div id="testdiv" style="height: 100px; width: 100px; background-color: lime; margin: 0 auto;"><p id="testdivP"></p></div> |
</body> | </body> | ||
</html> | </html> |
Revision as of 03:28, 25 August 2015