Supersized, show a div depending on the slide

Posted by Dlacrem on Stack Overflow See other posts from Stack Overflow or by Dlacrem
Published on 2011-10-14T18:58:52Z Indexed on 2012/06/12 22:40 UTC
Read the original article Hit count: 123

Filed under:
|
|

EDIT:

So, I want to take a different approach to try and clarify what I'm looking for, I've been reading as much as I could these last hours and I feel I have a better grasp of how the system works, but I still don't know how to accomplish my goal.

Reference links:

->SUPERSIZED API

So, I have the following script:

<script type="text/javascript">

    $(document.body).ready(function () {

        if (vars.current_slide == 5){**-I want it to display a div if the slider is the number 5-**     

}       

    });

</script>

My questions are these:

1) What do I add in the - - area to display a div that only shows up when the slider is at the 5th slide?

2) Am I doing the rest right or am I missing something? I created that code so it could be terribly wrong lol, hopefuly I got something right :P

That's all, hope this clarifies it.

Thank you all for the help! I'm really excited to start creating my own scripts :D


Alright, so I've uploaded the site with the code you posted and it still doesn't seem to work, I also tried reducing the code to the conditional and the result only but that didn't work either, mind checking it out?


Click Here

Thanks for giving it a thought!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about display