Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript strange error with fadein/fadeout & stop

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27639
    vezzo
    Member

    I’ve noticed a strange error in this script

    Code:
    $j(‘.persona’).hover(
    function() { $j(this).children(‘.testo’).stop().fadeIn(400);}
    , function() { $j(this).children(‘.testo’).stop().fadeOut(400);}
    );

    this code just fade in an image that is set to display:none in the css and fade it out when the mouse is out.

    the html is something like that.

    Code:
    some text

    but if I hover the image faster the text starts to fade out a bit more everytime without returning to the normal opacity.
    I attach two screenshots so you can figure out it a bit easily.

    [img]http://www.apertamente.eu/site/screen1.jpg[/img]
    [img]http://www.apertamente.eu/site/screen2.jpg[/img]

    thanks a lot.

    #69986
    vezzo
    Member

    no one?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.