how do I move iFrame back , after pages loads

Discussion in 'Programming' started by darkmessiah, Nov 30, 2007.

  1. #1
    I have a situation where I have to let my site finish loading before my iFrame loads. The iFrame is supposed to be in a certain spot at the time it is originally called, but because it was delayed, the iFrame is at the bottom of the page.

    Is there a way to get it back to where it belongs?
     
    darkmessiah, Nov 30, 2007 IP
  2. darkmessiah

    darkmessiah Peon

    Messages:
    500
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ok, figured this one out also. I just did a
    
    document.write('<div id="whatever"></div>');
    setTimeout("thefunction()", 5000);
    
    Code (markup):
    then in the function just appended the iframe to the "whatever" id..

    works perfect.. now i just gotta figure out how to make this crap compatable with ie 6
     
    darkmessiah, Dec 1, 2007 IP