I'm saying in your css:
#vertical_slide { visibility: hidden } //won't be visible to the user, no
"flash"
Then in your js:
window.addEvent("domready", function() {
$('vertical_slide').slide('hide').setStyle('visibility', 'visible');
//now that the fx.slide is hidden, display the element
$('global_connect').addEvent('click', function(e) {
e.stop();
$('vertical_slide').slide('in');
});
});
On Mon, Mar 16, 2009 at 5:50 AM, Guillermo Rauch (via Nabble) <
[email protected]<ml-user%[email protected]>
> wrote:
> The 'new fx.slide'.. is not necessary. I think the getter initializes it
> for ya
>
> On Mon, Mar 16, 2009 at 9:48 AM, Todd
> <acco...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2485750&i=0>
> > wrote:
>
>>
>> thanks nutron,
>>
>> I must be a little "thick" this morning because as simple as it seems I
>> still can't get it to work. Below is the original code. Also, is
>> visibility:visible an inline style or part of the js?
>>
>> var myVerticalSlide = new Fx.Slide('vertical_slide');
>> document.addEvent("domready", function() {
>> $('vertical_slide').slide('hide');
>> $('global_connect').addEvent('click', function(e) {
>> e.stop();
>> $('vertical_slide').slide('in');
>> });
>> });
>>
>>
>> On Mar 15, 2009, at 10:17 PM, nutron wrote:
>>
>> set it to visibility:hidden in your css, then in your js, initialize
>>> Fx.Slide, hide it (.hide()) and then set style to visibility:visible.
>>>
>>
>>
>
>
> --
> Guillermo Rauch
> http://devthought.com
>
>
> ------------------------------
> View message @ http://n2.nabble.com/-Moo--Fx.Slide-tp2482047p2485750.html
> To start a new topic under MooTools Users, email
> [email protected]<ml-node%[email protected]>
> To unsubscribe from MooTools Users, click here< (link removed) >.
>
>
>
-----
The MooTools Tutorial: http://www.mootorial.com www.mootorial.com
Clientcide: http://www.clientcide.com www.clientcide.com
--
View this message in context:
http://n2.nabble.com/-Moo--Fx.Slide-tp2482047p2487111.html
Sent from the MooTools Users mailing list archive at Nabble.com.