function(){ $("#slider a img").parent().attr('onclick','return false') $("#slider a img.selectedItem").parent().removeAttr('onclick') }
<script type="text/javascript"> $().ready(function(){ var scrol = $('#slider').coverscroll(); scrol.movecallback = function(){ $("#slider a img").parent().attr('onclick','return false') $("#slider a img.selectedItem").parent().removeAttr('onclick') }; }); </script>