Guest User

Untitled

a guest
Jul 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <script type="text/javascript">
  2. Event.observe(window,'load', function() {
  3. $$('.showMore').each(function(e) {
  4. e.observe('click', function() {
  5.  
  6. if(e.hasClassName('another')) {
  7.  
  8. e.setStyle({'src':'images/more3.gif'});
  9. e.removeClassName('another');
  10. }
  11. else {
  12.  
  13. e.setStyle({'src':'images/more3.gif'});
  14. e.addClassName('another');
  15. }
  16. var next = e.ancestors().first().next('.content');
  17. Effect.toggle(next,'blind');
  18.  
  19. });
  20. });
  21. $$('.content').each(function(e) {
  22. e.hide();
  23. });
  24. });
  25. </script>
Add Comment
Please, Sign In to add comment