jQuery doTimeout plugin -- can't cancel timeout

http://mayacove.com/jq/test.html
timeout: 4 secs after pg load pop alert

clicking “cancel” does not cancel timeout, alert appears anyway…

here
http://benalman.com/code/projects/jquery-dotimeout/examples/delay-poll/
and here
http://benalman.com/code/projects/jquery-dotimeout/docs/files/jquery-ba-dotimeout-js.html

it says this is how you cancel timeouts w/this plugin…

would appreciate some help…

thank you…

The reason why is because your not preventing the default action of the anchor link, simply change your click event to the below and it should work fine.

$('a').click(function(e) {
    e.preventDefault();
    $.doTimeout('to');
});

yes, thank you… what a jerk… I realized this last night after posting…

however: it’s not working in my real situation… code:

[FONT=Courier New]
 
$.doTimeout('TOinit', 500, function() {
	$('#hall').fadeIn(800);

	$.doTimeout(900, function() {  
		$('#exc').show();

		$.doTimeout(1000, function() { 
			$('#skip_intro').show();
			
				$.doTimeout('zoom', 500, function() { 
					zoomIt();
					
					$.doTimeout(4000, function() { 
						$('#intro').fadeOut(1000, function() {
							
						$.doTimeout('TOgray', 700, function() { 
							$('#wrapper_gray').fadeIn(2000);
							$('#wrapper_gray img,#wrapper_gray a').fadeIn(2000);
							$('#nav_wrapper').slideDown(2000);
							$('#nav a').removeClass('activeSlide');
					
							$.doTimeout(6000, function() { 
								$('#wrapper_gray').fadeOut(2000);
								$('#wrapper_gray img,#wrapper_gray a').fadeOut(2000);
								
								$.doTimeout(2000, function() { 
									$('#wrapper_panels').fadeIn(2000)
									$('#content_top').slideDown(2000);
									$('#wrapper_panels').cycle('resume');
									
								});
							});
							
						});
						
					});
					
				});
				

			});

		});

	});

});
		
		
	//	************ intro ***********
	
	$('a#skip_intro').click(function(e) {
		e.preventDefault();
		$.doTimeout('TOgray');  //***  NOT GETTING CANCELLED *****
		$('#wrapper_panels,#content_top,#intro').css('display','none');
		$('#wrapper_gray,#wrapper_gray img,#wrapper_gray a,#nav_wrapper,#footer').css('display','block');
		$('#nav a').removeClass('activeSlide');
	});[/FONT]

If I do $.doTimeout(‘TOinit’); instead to stop TO from the beginning, it also doesn’t work…

thank you…