This code will add a graphical interface to each page load. I wrote this code to close the graphical interface as soon as the page fully loads. So if your page takes one second to load it only shows for one second, but if your page takes 10 seconds to load, It will show it for 10 seconds and so on. I've also added a 20 second failsafe closing code so if anything locks up on your network or someone has really slow Internet it will close whether the pages fully loaded or not.
click here to see it live - Ning 3
~
click here to view the JS codes
click here to view the CSS codes
Install instructions Ning 3 For your whole network place the code above all the other codes in your "Custom Code - <Head> Code box". And for an individual page the code goes in the "Below Header HTML box"..
Install instructions Ning 2 For your whole network place the code in your add box above the header.
<link rel="stylesheet" type="text/css" href="null//storage.ning.com/topology/rest/1.0/file/get/558302?profile=original"/>
<script type="text/javascript" src="null//storage.ning.com/topology/rest/1.0/file/get/558297?profile=original"></script>
<link rel="stylesheet" type="text/css" href="null//storage.ning.com/topology/rest/1.0/file/get/963872815?profile=original"/>
<script type="text/javascript" src="null//storage.ning.com/topology/rest/1.0/file/get/558297?profile=original"></script>
<link rel="stylesheet" type="text/css" href="null//storage.ning.com/topology/rest/1.0/file/get/963873322?profile=original"/>
<script type="text/javascript" src="null//storage.ning.com/topology/rest/1.0/file/get/558297?profile=original"></script>
<link rel="stylesheet" type="text/css" href="null//storage.ning.com/topology/rest/1.0/file/get/963873338?profile=original"/>
<script type="text/javascript" src="null//storage.ning.com/topology/rest/1.0/file/get/558297?profile=original"></script>
<link rel="stylesheet" type="text/css" href="null//storage.ning.com/topology/rest/1.0/file/get/963873405?profile=original"/>
<script type="text/javascript" src="null//storage.ning.com/topology/rest/1.0/file/get/558297?profile=original"></script>
<link rel="stylesheet" type="text/css" href="null//storage.ning.com/topology/rest/1.0/file/get/963873857?profile=original"/>
<script type="text/javascript" src="null//storage.ning.com/topology/rest/1.0/file/get/558297?profile=original"></script>
<link rel="stylesheet" type="text/css" href="null//storage.ning.com/topology/rest/1.0/file/get/963873789?profile=original"/>
<script type="text/javascript" src="null//storage.ning.com/topology/rest/1.0/file/get/558297?profile=original"></script>
<link rel="stylesheet" type="text/css" href="null//storage.ning.com/topology/rest/1.0/file/get/963874452?profile=original"/>
<script type="text/javascript" src="null//storage.ning.com/topology/rest/1.0/file/get/558297?profile=original"></script>
<link rel="stylesheet" type="text/css" href="null//storage.ning.com/topology/rest/1.0/file/get/963874461?profile=original"/>
<script type="text/javascript" src="null//storage.ning.com/topology/rest/1.0/file/get/558297?profile=original"></script>
If you'd like to create your own custom loader just replace the loader image link in the code below with your custom loader image link then place the code in your design studio CSS section. You can also use this snippet of code to customize the loader for individual pages. That way you'll have a different graphical loading interface for each individual page. For individual pages this code goes in your "Below Header HTML box"
/* design studio CSS section */
BODY:after{
background-color:black!important;
background-image: url("https://api.ning.com/your-link.gif")!important;
background-position: center;
background-repeat:no-repeat;}
@media screen and (max-width:560px) {
body:after{
background-size: contain!important;} }
Click this link to download more loader images... more_loader_images.exe
Replies
George, I was creating a few of these over the weekend and wanted transparent backgrounds and color choices. Curious if you have a site you prefer to create such as http://ajaxload.info/ or just grab off of the web. Thanks btw for sharing! Nice to have another post that's upbeat, productive and positive.
You're welcome and thank you Kos.. :)
I don't tend to use webpage editors I have quite a few programs on my computer that do everything that they can do. Transparencies, combining animations etc. etc.
Most of the graphical images on this tip were just grabbed off the Internet.. You have a great day Kos.. :)
Pretty slick George... have to play with these. Thanks for sharing :)
Thank you FT!! I would love to see how you use it or if you use it LOL :-) you have a great day.
Will do. Have a great weekend as well!
FT, here's a version with all the CSS taken out of the script so you can customize it even more.
It doesn't have to be a full-screen overlay just set the max widths.
And with some images you may want to add a size. For most of the ones in this tip I'm not using a background size but on some of them I'm using either "contain" or "cover".
Some of them I also added a background size just for cell phones. Example codes below
background-size: contain!important;
background-size: cover!important;
@media screen and (max-width:560px) {
body:after{
background-size: contain!important;} }
Here's all the CSS
body:after{
position:fixed;
z-index:99999999999999999999999999999999999999999999999999999999999999999999999;
left:0px!important;
right:0px!important;
margin-left:auto!important;
margin-right:auto!important;
height: auto!important;
max-width:100%;
max-height:100%;
top:0px;
bottom :0px;
margin-top:auto;
margin-bottom:auto;
content: "";
background-color:black;
background-image: url("https://storage.ning.com/topology/rest/1.0/file/get/558130?profile=original");
background-position: center;
background-repeat:no-repeat;}
And here's the script to close it after the page is fully loaded.
<script type="text/javascript" src="http://bit.ly/1JrQW09"></script>
Thank you :)
You're welcome FT. :-)
Hi George
Hope you are well ,
Great idea
Please can you do this to my site
thank you, your a star as always :D
Hello Mary, Yes I'm doing well hope you are too. :-)
Which one did you want to use? I placed one on your 3.0 network did you want one on your 2.0 as well?