Difference between revisions of "Template:SJTU-BioX-Shanghai/Alpha/Header"

Line 12: Line 12:
  
 
       var a = evnt.currentTarget;
 
       var a = evnt.currentTarget;
       var id = a.attributes["href"].nodeValue;
+
       var id = a.attributes["href"].value;
 
       var ele = document.getElementById(id.slice(1, id.length))
 
       var ele = document.getElementById(id.slice(1, id.length))
 
       var top = ele.offsetTop
 
       var top = ele.offsetTop

Revision as of 01:56, 17 August 2015