ballouta Posted September 25, 2008 Share Posted September 25, 2008 Hello I am trying to use this nice javscript: http://demos.mootools.net/Fx.Slide I want to use only the Vertical one. So I deleted this piece of code from index.html <h3 class="section">Horizontal</h3> <div class="marginbottom"> <a id="h_slideout" href="#">slide out</a> | <a id="h_slidein" href="#">slide in</a> | <a id="h_toggle" href="#">toggle</a> | <a id="h_hide" href="#">hide</a> | <a id="h_show" href="#">show</a> | <strong>status</strong>: <span id="horizontal_status">open</span> </div> <div id="horizontal_slide"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </div> But i can see an error in the status bar: you may see it here: http://www.dmcpublisher.com/Fx.Slide/ Another question: How do I make the default status of this vertical Closed? when i toggle it, it opens. I don't need the other show/hide options Thank you Quote Link to comment Share on other sites More sharing options...
ballouta Posted September 25, 2008 Author Share Posted September 25, 2008 Hi i am sorry I solved the error problem. But still don't know how to make this slide closed by default Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted September 25, 2008 Share Posted September 25, 2008 it's because you still have the javascript for the horizontal one in your demo.js. remove all the horizontal events. as for having it closed by default. you could do this. <script> window.addEvent('domready', function() { var myVerticalSlide = new Fx.Slide('vertical_slide'); //add this after you instantiate the Slide object to close it at the start myVerticalSlide.hide(); }); </script> Quote Link to comment Share on other sites More sharing options...
ballouta Posted September 25, 2008 Author Share Posted September 25, 2008 Thanks alot, you are expert. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.