Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Rotating Banner Manager

    I love the ease of using banner manager!! But is it possible to have the banners scroll (eg: change to the next banner automatically every 10 seconds?).

  2. #2
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Rotating Banner Manager

    Ok you can see the banner rotator in action on my mockup page The banner rotates every 10 seconds.

    There are 4 files for this script:

    First is a CSS file:
    Code:
    .stepcarousel{
    position: relative; /*leave this value alone*/
    border: 0px solid black;
    overflow: scroll; /*leave this value alone*/
    width: 690px; /*Width of Carousel Viewer itself*/
    height: 200px; /*Height should enough to fit largest content's height*/
    }
    
    .stepcarousel .belt{
    position: absolute; /*leave this value alone*/
    left: 0;
    top: 5px;
    }
    
    .stepcarousel .panel{
    float: left; /*leave this value alone*/
    overflow: hidden; /*clip content that go outside dimensions of holding panel DIV*/
    margin: 0px; /*margin around each panel*/
    width: 690px; /*Width of each panel holding each content. If removed, widths should be individually defined on each content DIV then. */
    }
    Second is a remote JavaScript reference:

    http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js


    Third is the carousel viewer script:
    http://www.oceanabyssaquatics.ca/redo/stepcarousel.js

    And last but not least... the config javascript called carousel.js :
    Code:
    stepcarousel.setup({
    	galleryid: 'mygallery', //id of carousel DIV
    	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
    	panelclass: 'panel', //class of panel DIVs each holding content
    	autostep: {enable:true, moveby:1, pause:7000},
    	panelbehavior: {speed:1500, wraparound:true, wrapbehavior:'slide', persist:true},
    	defaultbuttons: {enable: false, moveby: 1, leftnav: ['http://i34.tinypic.com/317e0s5.gif', -5, 80], rightnav: ['http://i38.tinypic.com/33o7di8.gif', -20, 80]},
    	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
    	contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file']
    })
    Last edited by Tantirx; 2 Dec 2010 at 07:00 PM.

  3. #3
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Rotating Banner Manager

    One more thing the above is initiated using this code (as an example). I want to put the carousel where "Header Position 3" would normally be.

    Code:
    <div id="mygallery" class="stepcarousel">
    <div class="belt">
    
    <div class="panel">
    <a href="http://www.oceanabyssaquatics.ca"><img src="./1.jpg" /></a>
    </div>
    
    <div class="panel">
    <img src="./2.jpg" />
    </div>
    
    <div class="panel">
    <img src="./3.jpg" />
    </div>
    
    <div class="panel">
    <img src="./4.jpg" />
    </div>
    
    <div class="panel">
    <img src="./5.jpg" />
    </div>
    </div>
    
    </div>

  4. #4
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Rotating Banner Manager

    Nudge...

  5. #5
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Rotating Banner Manager

    Re-nudge

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Rotating Banner Manager

    Can you select the file with the <div id="mygallery" code as the banner file for header position 3?

    You would save the stylesheet as something like stylesheet_carousel.css in /includes/templates/your_template/css/.

    The js references and code should go in files named like jscript_xxx.js in /includes/templates/your_template/jscript/. I don't know the best way to organize them all, as I don't work with javascript. There are tutorials and forum threads with lots of information on the subject.

 

 

Similar Threads

  1. v150 Setting up a Rotating Banner
    By duke_seb in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 May 2012, 10:53 PM
  2. News and Articles Manager rotating summary
    By Graphic Content in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 May 2010, 01:28 PM
  3. rotating banner
    By firstmonte in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Mar 2010, 05:12 AM
  4. rotating banner in center
    By Kruna in forum General Questions
    Replies: 4
    Last Post: 28 Jan 2008, 03:23 AM
  5. Rotating banner
    By g0d4lm1ty in forum General Questions
    Replies: 2
    Last Post: 10 Dec 2006, 08:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR