Look at this code snippet:
$('#clickme').click(function(){blinkText($('#SendedText')); });
function blinkText(element)
{
$(element).fadeIn('slow');
$(element).fadeOut('slow');
}
This code works fine in all browsers except Firefox 3. Why does Firefox show and hide text so slowly? How can I fix this behavior?
There's nothing wrong with your code that could case the slowdown. However, try to change
$(element)
to
element
because your element
is already an jQuery object. If that won't work, that's probably a bug in your Firefox version. It's already version 7 now...
function blinkText(element)
{
element.fadeIn('slow');
element.fadeOut('slow');
}