troubleshooting Question

How to change the CSS of a DIV after 5 seconds?

Avatar of evibesmusic
evibesmusicFlag for United States of America asked on
PHPAJAXWeb Frameworks
12 Comments1 Solution417 ViewsLast Modified:
Experts,

I am using AJAX to call a div on my page. 5 seconds after the div is loaded, I want the following DIV to change its CSS and contents from:

<div id="change_me" style="width:500px; background-color:#000000;">
...test...
</div>

to:

<div id="change_me" style="width:500px; background-color:#000000;">
...test...
</div>

Is there anyway I can accomplish this using either the Prototype Framework or by using just javascript or PHP even?

Thanks for your input.
ASKER CERTIFIED SOLUTION
raysonlee

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros