I'm a Newbie ask about fx.slide

a place to get help

Moderator: 1.1 Moderators

I'm a Newbie ask about fx.slide

Postby khantry on Fri Sep 18, 2009 10:59 am

hi, my name is khantry and i'm a newbie for mootools member in this forum..

i need help about fx.slide..

code :
  1.  
  2. window.addEvent('domready', function(){
  3.     var mySlide = new Fx.Slide('panel',{
  4.         duration:1000,transition:Fx.Transitions.Cubic.easeOut
  5.     }).hide();
  6.     $('buttonSlide').addEvent('click', function(e){
  7.         e = new Event(e);
  8.         mySlide.toggle();
  9.         e.stop();
  10.     });
  11. });
  12.  


in index.php:
  1.  
  2. <div id="panelBg">
  3.     <div id="panel">
  4.         <jdoc:include type="modules" name="panel" style="modPanel" />
  5.     </div>
  6. </div>
  7. <div class="slide">
  8.     <a rel="nofollow" href="#" id="buttonSlide"><span><?php echo JText::_('MEMBER_AREA'); ?></span></a>
  9.     <a rel="nofollow" href="#" id="buttonSlide2"><span><?php echo JText::_('MEMBER_AREA'); ?></span></a>
  10. </div>
  11.  

and my questions, like where to fx.slide Toogle be confused with the 2 class in the css

like this code ..
  1.  
  2. switch toogle 1 :
  3. $('start_scroll_cont').style.display='block';
  4. $('stop_scroll_cont').style.display='none';
  5.  
  6. switch toogle 2:
  7. $('stop_scroll_cont').style.display='block';
  8. $('start_scroll_cont').style.display='none';
  9.  


so if Toogle of clicks will get a new style and so on
User avatar
khantry
 
Posts: 1
Joined: Fri Sep 18, 2009 10:36 am
Location: Indonesia

Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest