Part of the problem is cookies. Set persist to false. But that still doesn't fix things completely. But with persist true, it's looking for the third slide sometimes, and you only have the two.
The real issue is that for some reason there must be at least one data-bgimage attribute for one of the class="bgoverlay" divs. Then it will work with just videos. It doesn't even have to exist, but it cannot be empty. For example, you can just add the highlighted:
Code:
<div id="myparallaxslider" class="parallaxslider" style="margin:0px auto;">
<div class="slide">
<div class="bgoverlay"><iframe id="thevidiframe1" style="position:relative; width:960px; height:530px; border:0;" src="http://www.youtube.com/embed/uUzYyo8ffGw?&wmode=transparent&rel=0&showinfo=0" allowfullscreen></iframe></div>
<div class="desc">
<div style="position:absolute; width:410px; top:15px; left:15px; background:#000; padding:10px; border-radius:10px;">
<span style="font-size:20px;"><b>Changing the Picture</b></span><br>Changing the picture of education in America.
</div>
</div>
</div>
<div class="slide">
<div class="bgoverlay" data-bgimage="bob.jpg"><iframe id="thevidiframe2" style="position:relative; width:960px; height:530px; border:0;" src="https://www.youtube.com/embed/h24kplFaiIo?&wmode=transparent&rel=0&showinfo=0" allowfullscreen></iframe></div>
<div class="desc">
<div style="position:absolute; width:410px; top:15px; left:15px; background:#000; padding:10px; border-radius:10px;">
<span style="font-size:20px;"><b>Whatever It Takes</b></span><br>Featuring Communities In Schools Chair Elaine Wynn.
</div>
</div>
</div>
</div>
Make sure to also set persist to false, clear the cache, and/or refresh the page, should take care of it.
Note: You can use persist true if you want, but then you need to have a unique wrapper id, otherwise it will use the same cookie as the other show that has 3 slides and get messed up if that cookie is on the third slide. If you change the wrapper id, it must be changed both in the init and the markup, for example (first the init):
Code:
<script type="text/javascript">
var firstparallaxslider=new parallaxSlider({
wrapperid: 'myparallaxslider2', //ID of DIV on page to house slider
displaymode: {type:'auto', pause:5000, cycles:0, stoponclick:true, pauseonmouseover:true},
delaybtwdesc: 500 . . .
And to agree in the HTML markup:
Code:
<div id="myparallaxslider2" class="parallaxslider" style="margin:0px auto;">
<div class="slide">
<div class="bgoverlay"><iframe id="thevi . . .
Bookmarks