Web Analytics Made Easy -
StatCounter jquery variable + effect? - CodingForum

Announcement

Collapse
No announcement yet.

jquery variable + effect?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • jquery variable + effect?

    Trying to use a different jquery effect depending on a variable selected in an interface.

    Example code:

    Code:
    function poNextSlide(nextslide, inanimation, outanimation){
    $('#powrap > div').outanimation('fast', function(){//Fade out all slides.
    $('#powrap > div').stop(true,true);
    $('.poslide'+nextslide).inanimation('fast');//Once done, fade in next slide.
    });
    }

  • #2
    how is the variable selected? and what are outanimation and inanimation?

    the way you have written your function they are variables that shoudl be input into the poNextSlide function, but in the function you are using them like functions, doesnt make much sense.
    - Firebug is a web developers best friend! - Learn it, Love it, use it!
    - Validate your code! - JQ/JS troubleshooting
    - Using jQuery with Other Libraries - Jslint for Jquery/other JS library users

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎