Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to style a page content's background to gray while data is retrieving?
I tuned google but couldn't find any solution yet.

Even, i don't know what's it called.

Have a look on the snapshot Click to see the snapshot[^]

What I have tried:

I have searched a lot of things over the internet but could not find any solutions yet
Posted
Updated 24-Apr-18 6:36am

1 solution

Here's a route to do what I think you want to do.
  1. Set background to grey.
  2. Code <body> tag gets an onload event added to it.
  3. In the onload event code, change the background to whatever you want via DOM (or however jQuery handles DOM for you).
If you don't know what things like an onload event are, you should check the various free tutorials found at W3Schools Online Web Tutorials[^]
 
Share this answer
 
Comments
GeoFinex 25-Apr-18 7:25am    
Have you gone through my attached snapshot what exactly i want?
Have a look on it here https://www.dropbox.com/s/z6zkalhvjeiscy3/loading-bg.PNG?dl=0
W Balboos, GHB 25-Apr-18 7:59am    
I only follow links from trusted sources -

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900