Click here to Skip to main content
15,031,680 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I'm having a feedback box, which has to be at the right corner of the page and should scroll up and down with the scroll bar. But how to stop its flickering in IE and chrome CSS for that div is:

CSS
#showSurvey
{
position: relative;
width: 230px;
top: 190px;
float: right;
height: 60px;
}

and javascript to keep it at top is

JavaScript
var wintop = $(window).scrollTop(); if(wintop >= 190) {$('#showSurvey').css('top', (wintop + 10));} else{
$('#showSurvey').css('top', '190px');
}

Using this the div flicker a lot and it looks ugly can anyone please help

javascript css
Posted
Updated 15-Jul-15 0:51am
v2
Comments
Sreekanth Mothukuru 15-Jul-15 8:22am
   
I'm not sure why you are using jQuery when all you can do this is by CSS itself.

http://jsfiddle.net/tWpkf/
Richard Deeming 15-Jul-15 13:23pm
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900