Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6678601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:15:45+00:00 2026-05-26T04:15:45+00:00

EDIT: So, I want to take a different approach to try and clarify what

  • 0

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 😛

That’s all, hope this clarifies it.

Thank you all for the help! I’m really excited to start creating my own scripts 😀


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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:15:46+00:00Added an answer on May 26, 2026 at 4:15 am

    I assume you can manage to create that div using some HTML and CSS.

    Now, if I understood right, your question is how you can show certain extra information in that div for certain slides.

    The method for setting the contents of a div in jQuery is quite easy:

    $("#id_of_div").html("Any <b>HTML</b> content here");
    

    So if you want to set the content of the div to the value of testfield, use

    $("#id_of_div").html(testfield);
    

    edit in response to question edit

    Unfortunately, Supersized does not provide great triggers – the only option you have is editing your theme files.

    Your best option is probably to add the following code to the theme.afterAnimation() function; for the default theme this is located near the bottom of slideshow/theme/supersized.shutter.js.

    // current slide is #5
    if (vars.current_slide == 5) {
        // Get contents of the 'testfield' field
        var testfield = api.getField(testfield);
        // Set the HTML content of testfielddiv to the value of testfield
        if (testfield != "undefined") {
            $("#testfielddiv").html(testfield);
    
            // Show testfielddiv (which was hidden for all other slides)
            // The 'fast' argument is for a simple animation; it can be omitted
            // to show without animation, or changed to 'slow' or a number in ms
            $("#testfielddiv").show('fast');
        }
    }
    
    else {
        // Hide testfielddiv for any other slide
        $("#testfielddiv").hide('fast');
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to find factorial a number which i take memory first.(intel 8085) edit:
I want to take and edit a string in-place in a .NET app. I
I want edit multiple strings at once by selection the list of strings needs
What is the best method of using native menus in C#? Edit: I want
i want to edit a bat file where i set a certain systems variables,
I want to edit .vimrc file from Vim and apply them without restarting Vim.
I want to edit the css of a div element during .resize() event and
Dynamically I want to edit/update hosts(etc/hosts) file to add domain. To edit hosts(etc/hosts) file
I have a text file that I want to edit using Java. It has
I have this html code that i want to edit with jQuery. Here is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.