View Single Post
  #5  
Old 06-08-2011, 09:17 AM
 
frontliner frontliner is offline
 

Advanced Member
  
Join Date: Apr 2011
Location: Mons - Belgium
Posts: 53
 

Default Re: js Ultimate & bretteleben slideshows doesn't run from inside x-cart 4.4.3

Thanks Balinor,

As what i really need your help for is to be able to run the Dynamic Drive fade-in slide show v2.4 onto the homepage, i've reconfigured again for it.

So, here is the code that is set inside the heads section in /common_files/customer/home.tpl :

Code:
<head> {include file="customer/service_head.tpl"} {literal} <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="fadeslideshow.js"> /*********************************************** * Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more ***********************************************/ </script> <script type="text/javascript"> var mygallery=new fadeSlideShow({ wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow dimensions: [650, 433], //width/height of gallery in pixels. Should reflect dimensions of largest image imagearray: [ ["skin/common_files/images/familycar_s.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot."], ["skin/common_files/images/familybeach_s.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"], ["skin/common_files/images/4kids_s.jpg"], ["skin/common_files/images/familysofa_s.jpg", "", "", "What a beautiful scene with everything changing colors."] //<--no trailing comma after very last image element! ], displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false}, persist: false, //remember last viewed slide and recall within same session? fadeduration: 1000, //transition duration (milliseconds) descreveal: "ondemand", togglerid: "" }) {/literal} </script> </head>

Below the code that has been placed where the slideshow should be displayed in /2-columns/customer/main/welcome.tpl :

Code:
{* $Id: welcome.tpl,v 1.1.2.2 2010/08/09 06:39:52 aim Exp $ vim: set ts=2 sw=2 sts=2 et: *} {include file="customer/news.tpl"} {if $display_greet_visitor_name} <h1>{$lng.lbl_welcome_back|substitute:"name":$display_greet_visitor_name} </h1> {elseif $lng.lbl_site_title} <h1>{$lng.lbl_welcome_to|substitute:"company":$lng.lbl_site_title|amp}</h1> {else} <h1>{$lng.lbl_welcome_to|substitute:"company":$config.Company.company_name|amp}</h1> {/if} slideshow goes below this line {literal} <div id="fadeshow1"></div> {/literal} {$lng.txt_welcome}<br /> <div class="clearing"></div>

Also, fadeslideshow.js, x.png, restore.png and loading.gif has been placed in /common_files/customer directory together near home.tpl

...and now, i just don't know what more can i do to have it working

Your help is highly appreciated
__________________
X-Cart Gold v4.4.3
Reply With Quote