Thanks once again John - I had the data-target="_blank", but was absolutely making a mess of what I was adding to the jQuery section to go with it. Nothing I tried worked, but your solution is already up and running on the sample page: http://www.cisfl.org/sample1.html
Here is what I hope is the final question: I'm adding an additional slide with another video. I've copied the coding from the first slide and have it working here: http://www.cisfl.org/sample2.html. I haven't edited the script in the head section yet, so even though the second video works, after the first pass through I have the blank screen issue from my other thread (http://www.dynamicdrive.com/forums/s...arallax-Slider).
I tried adding another instance of the code you gave me:
Code:
onslide: function(slider, setting, nextslide){
if(slider.curslide == 2){
setTimeout(function(){
document.getElementById('thevidiframe').src = document.getElementById('thevidiframe').src;
}, setting.slideduration);
}
}
Since it's the third slide, it's zero based index is 2 if(slider.curslide == 2).
I made the new slide == 4
Finally, we need to assign a unique id to the iframe with the video.
I renamed them 'thevidiframe1' and 'thevidiframe2'
The final code in the head section is:
Code:
<script type="text/javascript">
var firstparallaxslider=new parallaxSlider({
wrapperid: 'myparallaxslider', //ID of DIV on page to house slider
displaymode: {type:'auto', pause:5000, cycles:0, stoponclick:true, pauseonmouseover:true},
delaybtwdesc: 500, // delay in milliseconds between the revealing of each description layer inside a slide
navbuttons: ['/scripts/parallax/arrowleft.png', '/scripts/parallax/arrowright.png', 'up.png', 'down.png'], // path to nav images
activeslideclass: 'selectedslide', // CSS class that gets added to currently shown DIV slide
orientation: 'h', //Valid values: "h" or "v"
persist: true, //remember last viewed slide and recall within same session?
slideduration: 1000, //transition duration (milliseconds)
onslide: function(slider, setting, nextslide){
if(slider.curslide == 2){
setTimeout(function(){
document.getElementById('thevidiframe1').src = document.getElementById('thevidiframe1').src;
}, setting.slideduration);
}
}
onslide: function(slider, setting, nextslide){
if(slider.curslide == 4){
setTimeout(function(){
document.getElementById('thevidiframe2').src = document.getElementById('thevidiframe2').src;
}, setting.slideduration);
}
}
})
jQuery(document).on('click', '.slide', function(){
var thref = jQuery(this).data('targethref'), t = jQuery(this).data('target');
if(thref){window.open(thref, t || '_self');}
});
</script>
This sample page is here: http://www.cisfl.org/sample3.html and I'm still working on it since the slideshow now no longer works at all.
Is it possible to embed 2 different videos without running into the blank screen issue after the first pass through?
Thanks,
Deborah
Bookmarks