Slimbox.open()= function(){ myslideshow.pause(true); }.bind(myslideshow);
is not good syntax,


it should be

Slimbox.open = function(){ myslideshow.pause(true); }.bind(myslideshow);

Slimbox.open() (with parenthesis) will just call the method open,



On Thu, Mar 12, 2009 at 7:22 PM, Daiv Mowbray <[email protected]>wrote:

>
>
> Hello electronbender,
> thanx for the reply,
>
> answer to your question,
> Because I don't know any better.
>
> I was hoping someone who did know better could give me a hand with this.
>
> was:
> Slimbox.open()= function(){ myslideshow.pause(true); }.bind(myslideshow);
> Slimbox.close()= function(){ myslideshow.pause(false); }.bind(myslideshow);
>
> tried removing the bind:
> Slimbox.open()= function(){ myslideshow.pause(true); };
> Slimbox.close()= function(){ myslideshow.pause(false); };
> still no luck.
>
> Also, I'm not really clear where or when I should be trying to do this.
>
> 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>
>
>
>
>
> On Mar 12, 2009, at 2:46 PM, electronbender wrote:
>
>  So why are you binding it to myslideshow, if you have an instance of
>> the myslideshow, why not use just myslideshow.pause(true) ?
>>
>
> Sincerely,
>
> Daiv Mowbray
>
>
>
>
>
>


-- 
fax : (+33) 08 26 51 94 51

Reply via email to