Difference between revisions of "Template:NYU Shanghai"
Line 175: | Line 175: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
document.getElementById("content").addEventListener("scroll", scrollNav(){ | document.getElementById("content").addEventListener("scroll", scrollNav(){ | ||
− | + | ||
}); | }); | ||
+ | function moveNav() { | ||
+ | document.getElementById("nav").scrollLeft = 100; | ||
+ | } | ||
function reset() { | function reset() { | ||
document.getElementById("project").style.borderWidth = "0px 1px"; | document.getElementById("project").style.borderWidth = "0px 1px"; | ||
Line 353: | Line 356: | ||
</div> | </div> | ||
<div style="width: 982px; height: 80px;"></div> | <div style="width: 982px; height: 80px;"></div> | ||
+ | <div onclick="moveNav()" style="height: 100px; width: 100px; background-color: lime;"></div> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 02:44, 25 August 2015