OK. I could use a guiding hand again.
I want to have a separate slideshow for each of my main categories. I got it figured out to get the same slideshow to appear in the main categories, but when I try to copy the code in includes/templates/my template/jscript/jscript_fadeshow_setup.php to create a new slideshow in one of the main category pages and insert the new div I get the following:
Error: DIV with ID fadeshow_ not found on page.
Here is the code I have been playing around with.
<?php
if($category_parent) {// set any desired condition for each slideshow}
?>
<?php
/*
if ($this_is_home_page) {$flag_disable_fadeshow2= true;//set any desired condition for each fadeshow}
*/
?>
<?php
/*
*if (!in_array($current_page_base,explode(",",'main_page,Pool_Cues,shopping_cart,login,checkout,fec_confirmation,checkout_success')) ) {
* $flag_disable_fadeshow1= true;}
*/
?>
<script type="text/javascript">
/* Ultimate Fade-in slideshow (v2.4)
* Last updated: May 24th, 2010. This notice must stay intact for usage
* Author: Dynamic Drive at <http://www.dynamicdrive.com/>
* Visit <http://www.dynamicdrive.com/> for full source code
*/
/*
This content is intended to be user-modified; it simply invokes the Dynamic Drive code.
Change any parameters to fit your display needs.
*/
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [750, 30], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["/images/slideshow/slide1.jpg", "/index.php?main_page=page&id=4", "", ""],
["/images/slideshow/slide2.jpg", "/index.php?main_page=page&id=4", "", ""],
["/images/slideshow/slide3.jpg", "/index.php?main_page=page&id=7", "", ""],
["/images/slideshow/slide4.jpg", "", "", ""] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:3000, cycles:0, wraparound:false, randomize:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
<?php }?>
<?php
if($category_parent) {// set any desired condition for each slideshow}
?>
<?php
/*
*if ($this_is_home_page) {$flag_disable_fadeshow2= true;//set any desired condition for each fadeshow}
*/
?>
<?php
/*
*if (!in_array($current_page_base,explode(",",'main_page,Pool_Cues,shopping_cart,login,checkout,fec_confirmation,checkout_success')) ) {
* $flag_disable_fadeshow1= true;}
*/
?>
<script type="text/javascript">
/* Ultimate Fade-in slideshow (v2.4)
* Last updated: May 24th, 2010. This notice must stay intact for usage
* Author: Dynamic Drive at <http://www.dynamicdrive.com/>
* Visit <http://www.dynamicdrive.com/> for full source code
*/
/*
This content is intended to be user-modified; it simply invokes the Dynamic Drive code.
Change any parameters to fit your display needs.
*/
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [750, 30], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["/images/slideshow/slide1.jpg", "/index.php?main_page=page&id=4", "", ""],
["/images/slideshow/slide2.jpg", "/index.php?main_page=page&id=4", "", ""],
["/images/slideshow/slide3.jpg", "/index.php?main_page=page&id=7", "", ""],
["/images/slideshow/slide4.jpg", "", "", ""] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:3000, cycles:0, wraparound:false, randomize:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
<?php }?>
Any help would be appreciated.
Dave