Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

jQuery Image Slider

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 03-07-2011, 07:02 PM
 
mixshows3 mixshows3 is offline
 

Member
  
Join Date: Feb 2011
Posts: 22
 

Default Re: jQuery Image Slider

Hey sdfjlsdfsdf,
How was this resolved? I see you have it working on your website
__________________
X-Cart 4.4.2
Reply With Quote
  #12  
Old 09-22-2011, 12:10 AM
 
wyzerus wyzerus is offline
 

Newbie
  
Join Date: Jul 2011
Posts: 3
 

Default Re: jQuery Image Slider

I have a similar problem with the nivo slider.

These scripts work when placed before the </body> tag. but it breaks the shadow box and other scripts??

If i put it inside the <head> the nivo slider does not work. the everything else works fine??

Any help would be well appreciated as this is my first time using x-cart and smarty.

Regards
Elton

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="{$SkinDir}/customer/javascript/jquery.nivo.slider.pack.js" type="text/javascript"></script>
<script src="{$SkinDir}/customer/javascript/sliderConfig.js" type="text/javascript"></script>
__________________
www.spares4mowers.co.uk
Version 4.4.3
Reply With Quote
  #13  
Old 10-12-2011, 01:58 AM
 
SamuraiCoder SamuraiCoder is offline
 

Member
  
Join Date: May 2011
Posts: 25
 

Default Re: jQuery Image Slider

I'm also having trouble loading an external javascript file. I do know the jquery is loaded by default with x-cart so you don't need to reference it again.

PHP Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<
script src="{$SkinDir}/customer/javascript/jquery.nivo.slider.pack.js" type="text/javascript"></script>
<
script src="{$SkinDir}/customer/javascript/sliderConfig.js" type="text/javascript"></script

should be

PHP Code:
<script src="{$SkinDir}/customer/javascript/jquery.nivo.slider.pack.js" type="text/javascript"></script>
 <
script src="{$SkinDir}/customer/javascript/sliderConfig.js" type="text/javascript"></script

Where these two lines go is the key question. I can't figure that out. I'd like to load them with all other JavaScript files as one JavaScript file. Maybe someone else can help..
__________________
Version 4.4.2
Reply With Quote
  #14  
Old 10-12-2011, 02:12 AM
 
SamuraiCoder SamuraiCoder is offline
 

Member
  
Join Date: May 2011
Posts: 25
 

Default Re: jQuery Image Slider

Just came across another thread (http://forum.x-cart.com/showthread.php?t=60723&highlight=javascript)

You need to add the references to the external JavaScript files in the file below to ensure your JavaScript file is loaded with all others

skin/common_files/customer/service_js.tpl
__________________
Version 4.4.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:33 AM.

   

 
X-Cart forums © 2001-2020