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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:00:57+00:00 2026-06-06T19:00:57+00:00

I’m trying to set up a slider that uses just one control-menu (e.g. Item

  • 0

I’m trying to set up a slider that uses just one control-menu (e.g. Item 1 | Item 2 | Item 3) but affects both the background image and a div container with text in it.

Take a look at this example from SAP: http://www.sap.com/germany/index.epx
There you can click on this yellow squares and both, the text in the box and the background changes (even in the right aspect ratio).

I tried several slideshow plugins, such as jCarousel, Nivo Slider, bxSlider, … But because of my weak javascript skills, I don’t really have a clue of how to achieve my goal…

Anybody can help me?

Thanks,
Sebastian

EDIT:
Thanks for your replies! I tried your solutions and commented it (see below). In addition to that, I provide a link to the webpage I’m trying to get this effect working:
http://prism-informatics.com/new/#

For the background-sliding effect I use a library/script/module called “bgStretcher”. It provides preloading of bg-images, nice transition effects, and “live-scaling”…

And there’s a jCarousel in the center of the page (the white box with text in it like “IT-Strategy”). The best thing to happen would be, if you click on the controls below the box (the numbers “1” or “2”) then this tells the bgStretcher-script to slide to the appropriate bg-picture… because of my bad js skills, I don’t know if there’s a way to do that…

  • 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-06T19:01:00+00:00Added an answer on June 6, 2026 at 7:01 pm

    This new answer makes use of bgStretcher: (fiddle: http://jsfiddle.net/rNLEQ/)

    <!DOCTYPE html><html><head>
    
    <link rel="stylesheet" type="text/css" href="http://www.ajaxblender.com/script-sources/bgstretcher-2/bgstretcher.css" />
    
    <style>
    .slider {
        background-color: white;
        width: 300px;
        margin: 100px;
        padding: 10px;
        border: 1px solid black;
    }
    .slider > div {
        display: none;
    }
    .slider > .control, .slider > .active {
        display: block;
    }
    .slider > .control li {
        display: inline;
        padding: 10px;
    }
    .slider > .control .showPage {
        font-weight: bold;
    }​
    </style>
    
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="http://www.ajaxblender.com/script-sources/bgstretcher-2/bgstretcher.js"></script>
    <script>
    jQuery(function($) {
        $('body').bgStretcher({
            images: [
                'http://prism-informatics.com/new/sites/all/themes/prism_new/images/bg1.jpg',
                'http://prism-informatics.com/new/sites/all/themes/prism_new/images/bg2.jpg',
                'http://prism-informatics.com/new/sites/all/themes/prism_new/images/bg3.jpg',
                'http://prism-informatics.com/new/sites/all/themes/prism_new/images/bg4.jpg',
            ],
            imageWidth: 1024, 
            imageHeight: 768, 
            nextSlideDelay: 8000,
            slideDirection: 'N',
            slideShowSpeed: 1000,
            transitionEffect: 'fade',
            sequenceMode: 'normal',
            buttonPrev: '#prev',
            buttonNext: '#next',
            pagination: '.control',
            anchoring: 'left center',
            anchoringImg: 'left center',
            preloadImg: true,
            callbackfunction: function() {
                var i = $('#bgstretcher .bgs-current').index('#bgstretcher li') + 1;
                $('.slider > div').removeClass('active');
                $('#slide'+i).addClass('active');
            }
        });
    });
    </script>
    </head><body>
    
    <p>Other content here.</p>
    
    <div class="slider">
        <div id="slide1" class="active">
            <h2>One</h2>
            <p>Something you want to say 1.</p>
        </div>
        <div id="slide2">
            <h2>Two</h2>
            <p>Something you want to say 2.</p>
        </div>
        <div id="slide3">
            <h2>Three</h2>
            <p>Something you want to say 3.</p>
        </div>
        <div id="slide4">
            <h2>Four</h2>
            <p>Something you want to say 4.</p>
        </div>
        <div class="control"></div>
    </div>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
    
    </body></html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function

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.