Created
June 22, 2011 16:14
-
-
Save ktopping/1040457 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function flushThis(id){ | |
| var msie = 'Microsoft Internet Explorer'; | |
| var tmp = 0; | |
| var elementOnShow = document.getElementById(id); | |
| if (navigator.appName == msie){ | |
| tmp = elementOnShow.parentNode.offsetTop + 'px'; | |
| }else{ | |
| tmp = elementOnShow.offsetTop; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment