Team:Tsinghua-A/template/header1js

From 2013.igem.org

(Difference between revisions)
(Created page with "<html> <script type="text/javascript"> //** Chrome Drop Down Menu- Author: Dynamic Drive (http://www.dynamicdrive.com) //** Updated: July 14th 06' to v2.0 //1) Ability to "le...")
Line 36: Line 36:
var parentEl=what.offsetParent;
var parentEl=what.offsetParent;
while (parentEl!=null){
while (parentEl!=null){
-
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
+
totaloffset=0;
parentEl=parentEl.offsetParent;
parentEl=parentEl.offsetParent;
}
}

Revision as of 18:27, 26 September 2013