摘要: function appendHTML(container,html,position){ position =position || 'after'; var objE = document.createElement("div"), nodes=null, ... 阅读全文
posted @ 2015-07-29 15:12 Yanyd 阅读(740) 评论(0) 推荐(0) 编辑
摘要: // Determine if an element is in the visible viewportfunction isInViewport(element) { var rect = element.getBoundingClientRect(); var html = documen... 阅读全文
posted @ 2015-07-29 14:56 Yanyd 阅读(1977) 评论(0) 推荐(0) 编辑