steveai steveai -4 years ago 140
CSS Question

I need a div to activate after 10 seconds

On my website there is a menu div that basically is a little + sign in a box. Apparently this is hard to see for many so I'm wondering if I can somehow activate

I need to go from default:



after 10 seconds.


Answer Source

Use the setTimeout() function. See below:

    //Change menu to open here.

The number at the end of the function is in milliseconds.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download