Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Div tag which is hidden in the first 3 seconds

    I need div tag which is hidden in the first 3 seconds, and will appear automatically, and will remain visible.

    I know that it can be achieved for example javascript, but how? I have not found anything similar.

    Thank you in advance!

  • #2
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I got the answer already. But thanks anyway!

    Code:
    <script type='text/javascript'>
    function showDiv()
    {
      document.getElementById('mydiv').style.display = 'inline';
    }
    
    setTimeout("showDiv()", 3000);
    </script>
    <div id='mydiv' style='display: none'>content</div>


  •  

    Posting Permissions

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