![]() |
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 |
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. |
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 |
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.
|
Re: help with j/s for slide show
Figured it out -
<center> Place Script Here </center> |
All times are GMT -8. The time now is 12:01 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.