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

help with j/s for slide show

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 02-08-2008, 10:28 AM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

Default Re: help with j/s for slide show

Banging my head against the wall with this. Does anyone have a complete set of instructions?

-DS
__________________
4.4
Code:
Hello World
Reply With Quote
  #22  
Old 02-10-2008, 10:27 AM
 
Pat M Pat M is offline
 

Member
  
Join Date: Dec 2007
Posts: 18
 

Default Re: help with j/s for slide show

This worked for me........

In customer/home.tpl, added this code to the <head> section:

{literal}<script type="text/javascript">

/***********************************************
* Ultimate Fade-In Slideshow (v1.51): ╘ Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["{/literal}{$ImagesDir}{literal}/ezbail2.jpg", "", ""]
fadeimages[1]=["{/literal}{$ImagesDir}{literal}/swivelclamp2.jpg", "", ""]
fadeimages[2]=["{/literal}{$ImagesDir}{literal}/speaker2.jpg", "", ""]

var fadebgcolor="white"

////NO need to edit beyond here/////////////

//I'm leaving out all the no-need-to-edit stuff to save space here//
</script>{/literal}


Then, in customer/main/welcome.tpl, added this code to the desired position in the body (within a table):

{literal}<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, 300, 225, 0, 3000, 0, "")
</script>{/literal}

In the future, I'll use balinor's suggestion to create a separate .js file. Hope this helps.
__________________
X-Cart Gold v.4.1.9
Reply With Quote
  #23  
Old 02-20-2008, 11:53 AM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

Default Re: help with j/s for slide show

Thanks,
Tried every which way (except the correct), but cant seem to get this one to work.

Any other suggestions?
Thanks,

-ds
__________________
4.4
Code:
Hello World
Reply With Quote
  #24  
Old 04-19-2008, 06:30 AM
 
dillion dillion is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 53
 

Default Re: help with j/s for slide show

I tried the old code that Jeeya posted and it worked fine. The only problem is how do you center it. I placed the code in the head.tpl but it shows on the far right side and I cannot figure out how to position it. Thanks.
__________________
X-CART GOLD 4.1.7
UNIX
Reply With Quote
  #25  
Old 04-19-2008, 06:52 AM
 
dillion dillion is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 53
 

Smile Re: help with j/s for slide show

Figured it out -

<center>
Place Script Here
</center>
__________________
X-CART GOLD 4.1.7
UNIX
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:01 AM.

   

 
X-Cart forums © 2001-2020