Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Nov 2007
    Location
    Toulouse - France
    Posts
    112
    Plugin Contributions
    0

    Default Slideshow in a sidebox

    In my sidebox "ANNONCE" I display a static image with Banner Manager. The banner is in BannersAll group.
    See here -> http://www.bricoleurre.com

    I now want to replace that by an automatic slideshow.
    How can it be done?

  2. #2
    Join Date
    Nov 2007
    Location
    Toulouse - France
    Posts
    112
    Plugin Contributions
    0

    Default Re: Slideshow in a sidebox

    I use the blank_sidebox 2.0

    My arborescence :

    Code:
    > /www
    >   /includes
    >       /templates
    >           /classic
    >               /jscript/jscript_slide.js
    >               /sideboxes/tpl_blank_sidebox.php
    >               /images
    >                     /slideshow/pub_concours.jpg et pub_sondage.jpg
    jscript_slide.js

    Code:
    > NewImg = new Array (
    > new Array("/includes/templates/classic/images/slideshow/pub_concours.jpg",
    > "http://www.bricoleurre.com/atelier/viewtopic.php?id=299"),
    > new Array("/includes/templates/classic/images/slideshow/pub_sondage.jpg",
    > "http://www.bricoleurre.com/index.php?main_page=peinture"),
    > //new Array("/images/slideshow/3.gif", "link3")
    > );
    > var ImgNum = 0;
    > var ImgLength = NewImg.length - 1;
    >
    > //Time delay between Slides in milliseconds
    > var delay = 1000;
    >
    > var lock = false;
    > var run;
    > function chgImg(direction) {
    > if (document.images) {
    > ImgNum = ImgNum + direction;
    > if (ImgNum > ImgLength) {
    > ImgNum = 0;
    > }
    > if (ImgNum < 0) {
    > ImgNum = ImgLength;
    > }
    > document.getElementById('slideshowImg').src = NewImg[ImgNum][0];
    > document.getElementById('slideshowLink').href = NewImg[ImgNum][1];
    >  }
    > }
    >
    > function auto() {
    > if (lock == true) {
    > lock = false;
    > window.clearInterval(run);
    > }
    > else if (lock == false) {
    > lock = true;
    > run = setInterval("chgImg(1)", delay);
    >  }
    > }
    >
    > auto();
    tpl_blank_sidebox.php

    Code:
    > <?php
    > /**
    > * blank sidebox - allows a blank sidebox to be added to your site
    > *
    > * @package templateSystem
    > * @copyright 2007 Kuroi Web Design
    >  * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
    > * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    > * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
    > */
    >
    >  $content = '';
    >  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '"
    > class="sideBoxContent">';
    >  $content .= '<script type="text/javascript" language="javascript"
    > src="/includes/templates/classic/jscript/jscript_slide.js"></script>';
    >  $content .= '<a
    > href="http://www.bricoleurre.com/atelier/viewtopic.php?id=299"
    > id="slideshowLink"><img
    > src="/includes/templates/classic/images/slideshow/pub_concours.jpg"
    > width="117px" height="252px" id="slideshowImg"/></a>';
    >  $content .= '</div>';
    > ?>

    My slideshow don't work, only first image is shown.

  3. #3
    Join Date
    Nov 2007
    Location
    Toulouse - France
    Posts
    112
    Plugin Contributions
    0

    Default Re: Slideshow in a sidebox

    Nobody for help me?

  4. #4
    Join Date
    Nov 2007
    Location
    Toulouse - France
    Posts
    112
    Plugin Contributions
    0

    Default Re: Slideshow in a sidebox

    Misty perhaps?

  5. #5
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,860
    Plugin Contributions
    2

    Default Re: Slideshow in a sidebox

    Quote Originally Posted by Mikado View Post
    Misty perhaps?
    Just created one for my own requirements..does
    not use your script..same result achieved however...
    Top right sidebox at
    http://www.dezinashop.com/demo/
    Dezina ZenCart Templates
    Please do not PM for support queries..Post in forums..help others

  6. #6
    Join Date
    Nov 2007
    Location
    Toulouse - France
    Posts
    112
    Plugin Contributions
    0

    Default Re: Slideshow in a sidebox

    I am certain that it is about a problem at the level of the road towards the js file because it's never executed. But I do not manage to find the good road.
    Please help me.

  7. #7
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,860
    Plugin Contributions
    2

    Default Re: Slideshow in a sidebox

    Quote Originally Posted by Mikado View Post
    I am certain that it is about a problem at the level of the road towards the js file because it's never executed. But I do not manage to find the good road.
    Please help me.
    How does your script differ from slideshow in my own
    sidebox? i.e. what effect does it produce?
    Dezina ZenCart Templates
    Please do not PM for support queries..Post in forums..help others

  8. #8
    Join Date
    Nov 2007
    Location
    Toulouse - France
    Posts
    112
    Plugin Contributions
    0

    Default Re: Slideshow in a sidebox

    I bought this morning Scrolling Featured Sidebox (order 215). I tried, unsuccessfully, to adapt it to my problem.

    The difference enters my script and your is that you fetch the images in the data base while I store the url of my images in tables JS.

    what effect does it produce?
    The script has to show in buckle of the images jpg contained in a folder. A click on an image loads a page. It is everything.

  9. #9
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,860
    Plugin Contributions
    2

    Default Re: Slideshow in a sidebox

    Slideshow sidebox is NOT same as Scrolling Featured Sidebox...
    Only completed and installed slideshow box today..
    BOTH are shown on righthand side boxes at
    http://www.dezinashop.com/demo/
    Dezina ZenCart Templates
    Please do not PM for support queries..Post in forums..help others

  10. #10
    Join Date
    Nov 2007
    Location
    Toulouse - France
    Posts
    112
    Plugin Contributions
    0

    Default Re: Slideshow in a sidebox

    What is the difference between both?

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. XML Slideshow in define_main_page.php
    By pensive612 in forum Templates, Stylesheets, Page Layout
    Replies: 17
    Last Post: 1 Apr 2010, 08:07 AM
  2. can I add a photobucket slideshow to my homepage?
    By magolines in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Sep 2008, 09:10 PM
  3. Help please with slideshow
    By DatinBridal in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 16 Nov 2007, 01:24 PM
  4. product slideshow
    By digz in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 26 Sep 2007, 10:10 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
  •