Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 30-06-2009
Member
 
Join Date: Apr 2009
Posts: 21
javascript delay loading function

I'm trying to delay the loading of a part of the HTML page. Basically, I want to load the part of the body, is delaying 5 seconds oe soon realize the process of loading. I do not want to use the onLoad of the body of the redirect, rather, make a section of the HTML; spear "which was dictated on the screen. please provide me the java script for it......
Reply With Quote
  #2  
Old 30-06-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: javascript delay loading function

I am providing an example below :

Code:
<script ...>
<!--
function stub(){};
</script>
</head>
<body>
...
<script src="/scripts/stub.js" type="text/javascript"></script>
</body>
Reply With Quote
  #3  
Old 30-06-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: javascript delay loading function

Use the below function to load it 10 seconds from whenever it's called, Hope this will make for you.... :

Code:
setTimer('functionFoo()',10);
Reply With Quote
  #4  
Old 30-06-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: javascript delay loading function

Below is the example for Setting a Javascript program to wait :

Code:
<script language="javascript">
function pausecomp(millis)
{
var date = new Date();
var curDate = null;
do { curDate = new Date(); }
while(curDate-date < millis);
}
</script>
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "javascript delay loading function"
Thread Thread Starter Forum Replies Last Post
Delay Commercial Loading of Philips Net-TV Dalajit Monitor & Video Cards 4 18-08-2011 05:33 AM
Delay in Loading Operating system message with Gigabyte 890FXA-UD5 aFRODITA Operating Systems 5 06-01-2011 10:17 AM
c# function equivalent to gettime function in javascript Omaar Software Development 4 10-03-2010 10:44 PM
JavaScript Sleep Function DARIELLE Software Development 3 29-06-2009 09:30 AM
JavaScript function help suseman Software Development 3 26-05-2009 05:11 AM


All times are GMT +5.5. The time now is 02:58 AM.