Been working on this galleria slide show www.dorsetdog.com/galleria-slide-trial-in-google-sites
I currently have it working on Autoplay, with pause on mouseover
and in galleria.classic.js I putHTML Code:<script> Galleria.run('#galleria', { picasa: 'useralbum:117361177067935925935/H2O4K9WaterBottle', autoplay: 3500 }); </script>
But at line 56 of galleria-1.3.5.js I foundCode:var gallery = this; this.$('stage').hover(function() { gallery.pause(); }, function() { gallery.play(); }) this.$('thumbnails').hover(function() { gallery.pause(); }, function() { gallery.play(); })
Which I presume means that the JS has a full play and pause control option. So rather than Autoplay, I want to use button controls for visitors to click on. My button control urls areCode:// list of Galleria events _eventlist = 'data ready thumbnail loadstart loadfinish image play pause progress ' +
Play - https://lh5.googleusercontent.com/-s...0/play-big.png
and
Pause - https://lh3.googleusercontent.com/-U.../pause-big.gif
I want those controls to be positioned in the same place so that the relevant button displays, and positioned to the right of the photo caption area (called .galleria-info-~ in the css), and to have mouse over text of "Press to play" and "Press to pause" for those buttons. See images
So my main questions are
- what do I need to change/add in the galleria-1.3.5.js for the Play/Pause event to work, and be triggered by my buttons?
And, What is the script or line that I need to add to the html file?
Many thanks
galleria-1.3.5.js galleria.classic.css



Reply With Quote


Bookmarks