SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Level 8 Chinese guy Archbob's Avatar
    Join Date
    Sep 2001
    Location
    Somewhere in this vast universe
    Posts
    3,732
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do show a div for a few seconds before another one loads

    So I need to show a div with ad code in it before another div that has code like this:

    Code:
    $querythis3[content]
    Loads
    $querythis3[content] its html code with a flash flash embedded. I need this ad code to show in that place for like 7-8 seconds before the html with the swf embed loads.

    Basically I want the second div to only start loading after the first div phases out after 8 seconds.

  2. #2
    Level 8 Chinese guy Archbob's Avatar
    Join Date
    Sep 2001
    Location
    Somewhere in this vast universe
    Posts
    3,732
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have this code now:

    Code:
    <div id="the_game"> FIRST DIV HERE ... </div> <div id="the_game2" style="display: none;"> SECOND DIV </div> <script type="text/javascript"> $(document).ready(function(){ setTimeout(function(){ $("#the_game").fadeOut(2000,function(){ $("#the_game2").show(); }); },15000); }); </script>
    However, the first div never fades out and the second one never appears.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •