newArerinhino
New Member
I have the following code which works fine in all browsers including Firefox:\[code\]var top;var imageHeight;function upFunction() { top = parseInt($(".feature img").css("top")); imageHeight = $(".feature img").height(); if (top > (imageHeight - 335) * -1) { $(".feature img").css("top", top - 1 + "px"); $("#topPos").val(top - 1); }};$(document).ready(function() {$("a#up").mousedown( function(e) { e.preventDefault(); upFunction(); timeoutId = setInterval( upFunction, 100 ); }).bind('mouseup mouseleave', function() { clearInterval(timeoutId); });});\[/code\]However there's obviously something else in my page which is causing this not to work in firefox and I can't work it out. Is there any way I can fond out what's causing it to break without removing everything from the page to find out what it is?