1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Setting up delay for java script function

Discussion in 'HTML & Website Design' started by TheLasTSamuRai, Sep 14, 2009.

  1. #1
    Hi
    I beed to call this function
    <script type="text/javascript" src="lock.js" > </script>
    after like 7sec from visting the index.html.
    How can i do that?
    thanks
     
    TheLasTSamuRai, Sep 14, 2009 IP
  2. digitaltrader

    digitaltrader Member

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #2
    do a search on google for 'javascript sleep', there are ready made functions that you can copy to sleep the script for xxx milliseconds. You may need to the sleep function in your .js file if you still want to use the src="lock.js".
     
    digitaltrader, Sep 15, 2009 IP