Question : multiple timers

Hello, here is a test.. What I'm trying to do is to have a bunch of function set inline timed events.. So what I am trying to do is to set a variable scope and have a function set up a time line if not exists.  Can some one help get it working?  Thank you Cheers -Jeremy
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js "></script>

		
<script type="text/javascript">	
// JavaScript Document

	function stopCount(timer,status){
	
		clearTimeout(window.timer);
		window.status=0;
		$('#'+status).text(timer+'stopped');
	}
	function run_event(status){
		$('#'+status).text("event ran");
	}
	
	function reportEditStatus(){
		$('#timer1_status').text("timer clicked");
		timer='timer1';
		status='timer1_status';
		stopCount(timer,status);
		if (!status){
			window.status=1;
			window.timer=setTimeout(function(){run_event(status)},1000);
			$('#'+status).text("timer started -- reportEditStatus");
		}
	}

	function resetHighlite(){
		$('#timer2_status').text("timer clicked");
		timer='timer2';
		status='timer2_status';
		stopCount(timer,status);
		if (!timer_is_on){
			window.status=1;
			window.timer=setTimeout(function(){run_event(status)},1000);
		}
		$('#'+status).text("timer started -- resetHighlite");
	}	

	
	$(document).ready(function(){			
			$('#timer1').click(function(event) {
				reportEditStatus();
			});	
			$('#timer2').click(function(event) {
				resetHighlite();
			});
	)};
</script>

</head>
<body >

The goal is not to tie to the ids.. that is just here out of convenience <br/><br/>
<a href="JavaScript:void(0);"  id="timer1">timer1</a>
<p id="timer1_status">stoped</p>

<br/>

<a href="JavaScript:void(0);"  id="timer2">timer2</a>
<p id="timer2_status">stoped</p>

</body>
</html>

Answer : multiple timers

For one problem machine, use Windows Install Cleanup to uninstall Office 2007 and to uninstall Acrobat 8. Restart and reinstall each product fully. Consider upgrading to Acrobat 9. Then see if this issue is still occuring.

I use Office 2007 and Acrobat 9 in complete harmony on Windows 7 and did on Vista as well.
... Thinkpads_User
Random Solutions  
 
programming4us programming4us