Hi Cam,

Thanks for the quick reply;

I changed up my code and got it working:


//shows gallery//
window.addEvent('domready', function() {
        var myFade4 = new Fx.Tween ('galleryPop');
        $('galleryPop').fade('hide');
        $('gallery').addEvent('click', function(e) {
        $('galleryPop').fade('toggle');
        e.stop();
    });
        });

//fades gallery and fades "flower" if it is visible (was flowerPower,
and is no longer a separate div, but exists in "galleryPop" one z
above everything else//
        window.addEvent('domready', function() {
        var myFade5 = new Fx.Tween ('galleryPop');
        $('galleryPop').fade('hide');
        $('galClose').addEvent('click', function(e) {
        $('galleryPop').fade(0);
        $('galClose').addEvent('mouseup', function(e) {
        $('flower').fade(0);
        e.stop();
    });
        });
        });


//toggles flower onto stage//
        window.addEvent('domready', function() {
        var myFade6 = new Fx.Tween ('flower');
        $('flower').fade('hide');
        $('stockPlan').addEvent('click', function(e) {
        $('flower').fade('toggle');
        e.stop();
    });
        });

Now I have only one event that calls the offending element, and I'm
fading it using the gallery close function above it (added a line or
2)

Thank you, and further critiques are always welcome,

High regards

Bill



On Sep 17, 5:07 pm, "Cam Spiers" <[EMAIL PROTECTED]> wrote:
> Hi Bill,
>
> window.addEvent('domready', function() {
>         var myFade7 = new Fx.Tween ('flowerPower');
>         $('flowerPower').fade('hide');
>         $('stockPlan').addEvent('click', function(e) {
>         $('flowerPower').fade('toggle');
>         e.stop();
>     });
>         });
>
>         window.addEvent('domready', function() {
>         var myFade8 = new Fx.Tween ('flowerPower');
>         $('flowerPower').fade('hide');
>         $('stockPlan').addEvent('click', function(e) {
>         $('flowerPower').fade(0);
>         e.stop();
>     });
>         });
>
> It seems here that you have two click events on stockPlan is this for a
> purpose?
> Hope this helps :)
>
> Cam
> On Thu, Sep 18, 2008 at 11:04 AM, Bill C.
> <[EMAIL PROTECTED]>wrote:
>
>
>
> > IE6 works as well.

Reply via email to