title: alert with mootools and joomla
body: <p>I have to try something very simple with mootools and joomla 2.5, but dont work.</p>
  
  <p>I only can show a alert when I clicking in a link of my menu</p>
  
  <p>I only want to show a alert,firebug don´t reconized any error but don´t show the alert to.</p>
  
  <pre><code> window.addEvent('domready', function() {
              var opt = {
                  slides: 'sliders',
                  duration: 1500,
                  auto: true,
                  delay: 5000,
                  buttons: {next:'go-prev', prev:'go-next'},
                  transition: Fx.Transitions.Quint.easeOut
              }
              var scroller = new QScroller('carrusel', opt);
              scroller.load();
  
            $$('.item-1 a').addEvent('click', function(event){
                  alert('clicked!');
              });
  
          });
          &lt;/script&gt;
  
  &lt;ul class="menu"&gt;
  &lt;li class="item-1"&gt;
  &lt;a href="/index.php/descripcion"&gt;Click here!&lt;/a&gt;&lt;/li&gt;
  
  &lt;/ul&gt;
  </code></pre>
  
  <p>the solution </p>
  
  <pre><code>window.addEvent('domready', function() {
  $$('.item-1 a').addEvent('click', function(event){
                  alert('clicked!');
              });
  
              var opt = {
                  slides: 'sliders',
                  duration: 1500,
                  auto: true,
                  delay: 5000,
                  buttons: {next:'go-prev', prev:'go-next'},
                  transition: Fx.Transitions.Quint.easeOut
              }
              var scroller = new QScroller('carrusel', opt);
              scroller.load();
  
  
  
          });
          &lt;/script&gt;
  </code></pre>