scripts run at the end

Discussion in 'JavaScript' started by a.ashabi, Jun 12, 2008.

  1. #1
    Hi.I have 3 scripts which are used for showing the ads.because they are so heavy.I'd like to show and run them at last(after the load page).
    I've tried:
    if (document.readyState == "complete"){
    document.onreadystatechange = myfunctionName;
    }

    but the problem is after the page load completes it doesnt show me the ads,my scripts are not at the end of the page they are 3 different places in my page.
    I really need help.
    thanks
     
    a.ashabi, Jun 12, 2008 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #2
    can you please provide links and/or better examples of what you are doing? thank you
     
    crath, Jun 12, 2008 IP