Difference between revisions of "Template:NYU Shanghai"
Line 177: | Line 177: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | document.onscroll=function(){ | ||
+ | //document.getElementById("nav").scrollLeft = document.getElementById("content").scrollLeft; | ||
+ | document.getElementById("testdiv").style.backgroundColor = "blue"; | ||
+ | }; | ||
function reset() { | function reset() { | ||
document.getElementById("project").style.borderWidth = "0px 1px"; | document.getElementById("project").style.borderWidth = "0px 1px"; | ||
Line 353: | 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; margin: 0 auto;"></div> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 03:25, 25 August 2015