Thanx Thierry
That's what I thought,
so:
Slimbox.open = function(){ ssShow954.pause(true); }.bind(ssShow954);
Slimbox.close = function(){ ssShow954.pause(false); }.bind(ssShow954);
Makes more sense, but I receive the error:
ssShow954 is not defined...
so I tried adding a bit of scope to the show object:
Slimbox.open = function()
{ window.ssShow954.pause(true); }.bind(window.ssShow954);
Slimbox.close = function()
{ window.ssShow954.pause(false); }.bind(window.ssShow954);
I'm guessing that this is the way to reach the object ssShow954.
This then doesn't give an error, but clicking the image doesn't
popover in the slimbox,
it goes straight to the image.
It feels like I'm re defining the functions Slimbox.open, and
Slimbox.close,
when what I want is to link on function to the other.
Click the image activates the Slimbox.open function and should pause
the slideshow.
Any suggestion is appreciated, I'm going around in circles here.
Daiv
On Mar 12, 2009, at 7:27 PM, Thierry bela nanga wrote:
it should be
Slimbox.open = function()
{ myslideshow.pause(true); }.bind(myslideshow);
On Thu, Mar 12, 2009 at 7:22 PM, Daiv Mowbray
<[email protected]> wrote:
I activate the slideshow:
window.addEvent('domready', function() {
this.el = $('slideshow');
var show184 = new Slideshow.Push(this.el,
null,{
/*options*/
transition: 'sine:out' });
});
Then I activate the slimbox:
<script type="text/javascript">
Slimbox.scanPage = function() {
$$
(document.links).filter(function(el) {
return el.rel && el.rel.test(/
^lightbox/i);
}).slimbox({
/*options*/
}, null, function(el) {
return (this == el) ||
((this.rel.length > 8) && (this.rel == el.rel));
});
};
</script>
<script type="text/javascript">
window.addEvent("domready", Slimbox.scanPage);
</script>
Sincerely,
Daiv Mowbray