Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- Event.observe(window,'load', function() {
- $$('.showMore').each(function(e) {
- e.observe('click', function() {
- if(e.hasClassName('another')) {
- e.setStyle({'src':'images/more3.gif'});
- e.removeClassName('another');
- }
- else {
- e.setStyle({'src':'images/more3.gif'});
- e.addClassName('another');
- }
- var next = e.ancestors().first().next('.content');
- Effect.toggle(next,'blind');
- });
- });
- $$('.content').each(function(e) {
- e.hide();
- });
- });
- </script>
Add Comment
Please, Sign In to add comment