Solved

Javascript. How to change the time on this onload function

Posted on 2011-09-28
2
334 Views
Last Modified: 2012-05-12
<body onload="setTimeout(function() { auto1();},350);auto2();auto3();auto4();">

I would like to alter the SetTimeout for auto2, and auto3 and auto4.
right now the scripts for auto1();},350); is ok, but I need some delay for the other 3 functions
0
Comment
Question by:westdh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 36720628
<body onload="slides();">

function slides() {
        setTimeout(function() { auto1();}, 350);
        setTimeout(function() { auto2();}, 350);
        setTimeout(function() { auto3();}, 350);
        auto4();
}

Open in new window

0
 

Author Closing Comment

by:westdh
ID: 36720671
Thanks
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question