I have a Problem:
I want to do a animation an a website every time the user clicks on a link. The animation sould happen and after it has finished the browser should navigate to the url the link points to.
What I have so far:
- function DoClick(url) {
- new Fx.Tween('main').start('height', 100, 0);
- }
- window.addEvent('domready', function(){
- var anilinks = $$('a.animate');
- anilinks.each(
- function(a){
- a.addEvent('click', DoClick.pass(a.href));
- a.onClick = 'return false;';
- }
- );
- });
The function DoClick is being called with the url of the link. Now I only need to "stop" the browser, do the animation and then navigate the browser.
How do I stop the browser and, after the Fx.Tween, navigate to the url?
I already asked here: help12/stop-link-navigation-t1006.html but that was the wrong forum.
The solustion there was event.stop(); but this is not possible in v. 1.1...
Thanks and sorry for the bad english!
Matthias


