Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Javascript implementation

Javascript implementation

Scheduled Pinned Locked Moved ASP.NET
helpquestionjavascriptadobetools
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    windhopper
    wrote on last edited by
    #1

    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 below

    function 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"

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups