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 7802147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:10:24+00:00 2026-06-02T01:10:24+00:00

http://buildinternet.com/project/supersized/ I’m having trouble figuring out the javascript that goes along with this jquery

  • 0

http://buildinternet.com/project/supersized/

I’m having trouble figuring out the javascript that goes along with this jquery plugin. What I’m trying to do is merge this with more js plugins, namely, an accordion plugin I have. The end goal is to essentially have two instances of Supersized running on one screen with the same controls, different images. I know, hard to envision but here’s an example.

The body is full screen background with Supersized, the image is image1.jpg and it’s black and white. Then, I have a smaller div, 960px wide in the center of the body, with an accordion of all the images I want, but in color. So as you change the accordion, you change the background. So when you have image1.jpg in color in the accordion box, the background of body is image1.jpg black and white.

So I’m having trouble because the js for supersized seems to only define a prev and next thumbnail, not ALL the thumbnails. So in theory I would have to figure out how to disoplay all thumbnails and then figure out how to alter these thumbnails’ images so that it is still controlling the slide transitions, but not actually the thumbnails for the background. In that way, I can then set the accordion slides to those thumbnails instead but have them control both the accordion and the background.

I’m sure I’m being very confusing right now, so if you have any questions, ask away. Thanks.

  • 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-06-02T01:10:25+00:00Added an answer on June 2, 2026 at 1:10 am

    Lets see if i got your question right,

    if you’re looking for a way to change the background image (used by supersized) on clicking on a div or something, then there are many ways to do it.

    The following code may help you out, it will replace the active slide image name with a ‘-bw’ in the end of it.

    for example : clicking on a div with a class name ‘click-me’ will change the background image from ‘image.jpg’ to ‘image-bw.jpg’

    function changeBg() {
      var $supersizedImg = $("#supersized .activeslide img"),
          imgSrc = $supersizedImg.attr('src');
      imgSrcArray = imgSrc.split('/'); //split the image source by '/'
      fullFileName = imgSrcArray[imgSrcArray.length - 1]; //get the file name
      fileName = fullFileName.split('.'); //split that file name by '.'
      fileName[0] = fileName[0] + '-bw'; //grab the first array element(which is filename without extension and add a '-bw' in the end)
      fileName = fileName.join('.'); //join the new file name with its extension with a '.'
      imgSrcArray[imgSrcArray.length - 1] = fileName; //add the new file name the the last element of imgSrcArray. 
      imgSrcArray = imgSrcArray.join('/'); //join the whole url by '/'
      $supersizedImg.attr('src', imgSrcArray); //add the new url to the img src of supersized
    }
    
    $('.click-me').on('click', changeBg); //call changeBg function when a div is clicked
    

    hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying for hours to copycat this http://buildinternet.com/project/supersized/ expanding ball demo and I
I am using the supersized plugin: http://buildinternet.com/project/supersized/docs.html#api_docs But it is troubling me, the documentation
I'm using supersized ( http://buildinternet.com/project/supersized/ ) for a full size image background slideshow, but
http://developer.yahoo.com/javascript/howto-proxy.html Are there disadvantages to this technique? The advantage is obvious, that you can
I am using the jQuery Supersized plugin ( http://buildinternet.com/project/supersized/ ). What I'm trying to
I'm using supersized plugin http://buildinternet.com/project/supersized/ to obtain a fullscreen gallery. It works fine itself,
I'm following this tutorial on making an animation like IKEA: http://static.buildinternet.com/live-tutorials/interactive-picture/index.html The issue I'm
I am using code off this site: http://buildinternet.com/2009/03/sliding-boxes-and-captions-with-jquery/ My problem is I mouse over
So I'm using the Supersized plugin (http://buildinternet.com/2011/07/supersized-3-2-fullscreen-jquery-slideshow/) to display beautiful background images behind the
http://plugins.jquery.com/project/conmenu its a plugin for right click menu..... however it has no example usages

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.