Hi there,
I apologize in advance if this question has already been previously answered, it’s difficult to research my particular issue.
I have a prettyPhoto lightbox plugin on my site. When I click the thumbnail, the lightbox window opens. The problem is that when I scroll, the lightbox shakes violently. I have tried every available option through CSS positioning and none of them suit my situation. I need to be able to DISABLE all scrolling while the lightbox is open.
I tried this:
<SCRIPT type=”text/javascript” language=”Javascript”>
var stop_scroll = false ;
function scrolltop(){
if(stop_scroll ==true){
scroll(0,0) ;
}
}
</script>
<script type=”text/javascript” charset=”utf-8″>
$(document).ready(function(){
$(“a[rel^=’prettyPhoto’]”).prettyPhoto({theme: ‘dark_rounded’});
stop_scroll==true;
});
</script>
This does nothing unfortunately. I am fairly new to javascript, and I imagine I am either approaching this incorrectly or I have some kind of syntax error.
PLEASE HELP!!!!!