Javascript implementation
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi All I'm trying to implement some javascript into my asp project but am having difficulty displaying whai need to disply. The code looks as follows:
<script type="text/javascript">
var start = (new Date()).getTime();
var THRESHOLD = 2500; // a number we will calculate belowfunction speedTest() {
var duration = (new Date()).getTime() - start;
if (duration < THRESHOLD) {
// fast connection (display flash)
} else {
// slow connection (do nothing?)
}
}
</script>The problem is that i'm not too sure of the code i need to put in the if statement to to display a flash object. Can anyone please help?
"Sex is not the answer, it's the question and the answer is yes"