Guest User

Untitled

a guest
Jun 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. {literal}
  2. <script type="text/javascript" charset="utf-8">
  3.  
  4. // code for the IntroText form to work using AJAX
  5. window.addEvent('domready', function() {
  6.  
  7. var successFx = new Fx.Tween('success', {
  8. property: 'opacity',
  9. duration: 500,
  10. transition: Fx.Transitions.Quart.easeInOut,
  11. link: 'chain'
  12. });
  13.  
  14. $('IntroForm').addEvent('submit', function(e) {
  15. e.stop();
  16.  
  17. UpdateFCKs();
  18.  
  19. this.set('send', {
  20. onComplete: function(response) {
  21. if (response == 'ok')
  22. {
  23. successFx.start(1,0).start(0,1);
  24. }
  25. }});
  26.  
  27. this.send();
  28. });
  29. });
  30. </script>
  31. {/literal}
Add Comment
Please, Sign In to add comment