HighDots Forums  

onscroll element flicker

Javascript JavaScript language (comp.lang.javascript)


Discuss onscroll element flicker in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
johkar
 
Posts: n/a

Default onscroll element flicker - 09-21-2003 , 03:29 PM






Has anyone found a solution to the flickering you get when scrolling a sized
div with a fixed header?

//SCROLLS LAYERS TOGETHER
function keepTogether(){
var div1 = document.getElementById('div1Input');
var div2 = document.getElementById('div2Input');
var tbl1Hdr = document.getElementById('table1Hdr');
var tbl1Hdr2 = document.getElementById('table1Hdr2');
div1.scrollTop = div2.scrollTop;
tbl1Hdr.style.top = div1.scrollTop + "px"; //header row-does not flicker
tbl2Hdr.style.top = div2.scrollTop + "px"; //header row flickers as it
floats in place
}



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.