Guest User

Untitled

a guest
Apr 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. document.observe("dom:loaded", function() {
  2. $$('.tab').invoke("observe", "click", function(tab) {
  3. var href = tab.element().href;
  4. new Effect.Fade(replaceme);
  5. new Effect.Appear('replaceme',
  6. new Ajax.Updater('replaceme', href, {
  7. asynchronous: false,
  8. }));
  9. tab.stop(); // prevent click from continuing and reloading page
  10. });
  11. });
Add Comment
Please, Sign In to add comment