Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2005
    Vancouver, Canada
    Plugin Contributions

    How to call JavaScript Slide show


    I recently upgraded a site we're working on to v1.3.0.2. I'm using overides templates. The site can be viewed at:

    DrByte had posted a response to this quesiton on an archived post: Javascript slideshow

    I want to do the same thing but on a global scale and I want to preload the images.

    I have placed jscript_slideshow.js inside includes/templates/ZC/jscript/ including the opening and closing tags.

    If you've visited the site, you will notice a grey box with top and bottom blue border. this is a background image in css. That's where the slideshow should load. images were placed in includes/template/ZC/images/slides/

    1. how do I call the script to display in that cell?
    2. the array is calling relative image files: images/slides/slide1.gif. is this correct or should I use absolute links?
    3. did I place the image in the correct images folder?
    4. how do I preload the images?

    When I followed the instructions in the Docs, I got a a blank space, equivalent to the slideshow, displayed top left corner above the logo.

    I must be missing a step. I have placed slideshow.html in the ZC directory just to test that the script runs correctly. you can see it here: testing files

    DrByte, can you clarify?
    Last edited by newagekat; 7 Jul 2006 at 06:37 PM.

  2. #2
    Join Date
    Jan 2004
    Blog Entries
    Plugin Contributions

    Default Re: How to call JavaScript Slide show

    sounds like you need a different approach from my comments in the post you referenced.

    I think all you need to do is insert this directly in the template file which drives the part of the page where you want the slideshow to appear.
    <script src="jscript/slideshow.js" type="text/javascript"></script>
    I can't tell you "where", because the site you linked is either down for maintenance or not a direct link to your working files area.

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Nov 2005
    Vancouver, Canada
    Plugin Contributions

    Idea or Suggestion Re: How to call JavaScript Slide show

    thanks DrByte. I finally got it working. If you want to take a look, here's the corrected link:



Similar Threads

  1. Show 4 products from a category as a slide show on mainpage
    By vinnyna in forum General Questions
    Replies: 5
    Last Post: 14 Dec 2011, 05:52 AM
  2. How to call specific images with javascript?
    By GodfatherAntiques in forum General Questions
    Replies: 0
    Last Post: 18 Jan 2011, 08:25 PM
  3. How can i add .swf files or slide-show add-ons?
    By sercan35ksk in forum General Questions
    Replies: 1
    Last Post: 31 Dec 2010, 10:10 AM
  4. how to make a slide show in banner?
    By hxkknba in forum Basic Configuration
    Replies: 6
    Last Post: 6 Apr 2010, 05:59 AM
  5. How do I center slide show
    By gofer_p in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Sep 2009, 05:28 PM


Posting Permissions

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