» » Picture and page loading effects realized by jQuery oloader plugin

 

Picture and page loading effects realized by jQuery oloader plugin

Author: bamboo06 on 27-11-2014, 03:29, views: 1967

13
We use jQuery's ajax iframe in the page using the same load as the other content of the page, and today I have to share a plugin called jQuery oLoader, the plug-in also integrates oPageLoader, you can easily load the pictures and pages pretty effect.

oLoader Use
Whether or oPageLoader oLoader are based on jQuery, so please be loaded before calling jquery library.
Call jQuery oLoader very simple sentence as follows:
$('#element').oLoader(); 

Use oLoader to Load picture:
$(function(){ 
  $('img').oLoader({ 
    waitLoad: true, 
    fadeLevel: 0.9, 
    backgroundColor: '#fff', 
    style:0, 
    image: 'loader.gif' 
  }); 
}); 

Use oLoader loading pages:
$('#ajax').oLoader({ 
  url: 'test.html', 
  updateOnComplete: false 
}); 

Of course, it also provides a wealth of options and callback function set according to specific needs.
{ 
  image: 'images/loader.gif',  //Load animated images 
  style: 1, //loader style 
  modal: true, //Modal mask, if false, it will not show the mask layer
  fadeInTime: 300, //Fade speed mask layer, ms
  fadeOutTime: 300, //Talk about the speed of the mask layer, ms
  fadeLevel: 0.7, //Mask layer transparency, 0-1
  backgroundColor: '#000', //Background color
  imageBgColor: '#fff', //loader Animated Picture background
  imagePadding: '10', 
  showOnInit: true, //Initialization show loading animation 
  hideAfter: 0, //time in ms 
  url: false, //Ajax call parameters, the same below 
  type: 'GET', 
  data: false, 
  updateContent: true, //Replace if ajax return content 
  updateOnComplete: true,//Whether to replace the contents of the server returns immediately 
  showLoader: true, //Whether to display loader Pictures 
  effect: '', //Dynamic effects, support for door,slide,doornslide 
  wholeWindow: false, //when true, oLoader covers the whole window 
  lockOverflow: false, //locks body's overflow while loading 
  waitLoad: false, //When the element content until they have finished loading display content 
  checkIntervalTime: 100, //interval which checks for position changes 
    
  //Callback 
  complete: '', //When the movie ended, finished loading the contents of call 
  onStart: '', //Called when the animation begins 
  onerror: '' //Ajax request error when calling 
} 

oPageLoader Use
oPageLoader can be achieved when the page is loaded pretty animated progress bar, call oPageLoader also very simple, as follows:
$(function(){ 
  $.oPageLoader(); 
}); 

oPageLoader provides a wealth of options and method calls.
{ 
  backgroundColor: '#000', //Background color 
  progressBarColor: '#f00', //A progress bar color 
  progressBarHeight: 3, //A progress bar height 
  progressBarFadeLevel: 1,  
  showPercentage: true, 
  percentageColor: '#fff', 
  percentageFontSize: '30px', 
  context: 'body', 
  affectedElements: 'img,iframe,frame,script', 
  ownStyle: false, //If set to ture, you can customize the progress bar style 
  style: "<div id='ownage_page_loader_text'>0%</div><div id='ownage_page_loader'></div>", 
  lockOverflow: true, 
  images: [], //array of additional images, such as those from css files 
        
  wholeWindow: true, 
  fadeLevel: 1, 
  waitAfterEnd: 0, 
  fadeOutTime: 500, 
    
  //callbacks 
  complete: false, //Executed when the page is finished loading animation ends 
  completeLoad: false, //When the page has been loaded on the end of the animation is not required to perform 
  update: false 
} 

Callback update, when the page is finished loading element called data returned data is:
The total number of elements loaded: data.total.
data.loaded: element has been loaded.
data.percentage: percentage.
How to use:
$ .oPageLoader ({
   update: function (data) {
     // here you can work
     // with data.percentage
     // Data.loaded
     // Data.total
   }
});

See page loading example 3 and page loading example 4 in details.

Category: Javascript / Plugins

Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.
<
  • 0 Comments
  • 0 Articles
24 October 2017 00:34

Mark

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Now we have lots of plugins that we use for jquery and for loading pictures as well.Many best essays provide it in free although the owner of these plugins provide it as a paid service.

<
  • 0 Comments
  • 0 Articles
31 October 2017 18:04

Alina Olive

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
I was same issue face on my website and that code help too much Do My Homework For Money here is a website now it is working absolutely fine.

<
  • 0 Comments
  • 0 Articles
5 November 2017 22:49

Emily Jack

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
There is no postponement on these movements and everything becomes all-good in .9s, making it a decent and smooth effect. is it safe to use assignment service. I have utilized comparable advances and change strategies on the uncover activity. There is no compelling reason to rehash the css here.

<
  • 0 Comments
  • 0 Articles
11 November 2017 00:46

Jake

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
This has to be the best thing that has ever come across and this should be the first and foremost priority of every serious individual. Essay Editing Service By Editingarsenal has been quite helpful in this regard.

<
  • 0 Comments
  • 0 Articles
10 December 2017 20:47

Kelli

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
As javascript might be incapacitated in the program (e.g. it might be an element telephone with constrained javascript support or program with Noscript addon), it is generally prescribed to include a fallback picture in <noscript> tag, check introductory picture with class="lazy" trait and assignment land shroud it utilizing CSS (generally programs with crippled javascript will show the two pictures).

<
  • 0 Comments
  • 0 Articles
27 December 2017 18:46

Aalin

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Though you would probably should try to eat a whole bunch connected with dirtied species of fish spanning a for an extended time time for being ruined, you will be practical once Mullet fish you know around the health and fitness rank on the species of fish where by you are preparing ones excursion. To read more, call this state species of fish in addition to wild animals team intended for exactly species of fish advisories in the community.

<
  • 0 Comments
  • 0 Articles
16 January 2018 13:56

Anna

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
I really like your point you have written very amazingly. Thanks for sharing your information with everyone and keep posting, router login

<
  • 0 Comments
  • 0 Articles
30 January 2018 18:19

alvina ash

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Now we have plenty of plugins that we utilizes because of jquery then because loading snap shots as well.Many beneficial essays grant it into uninterrupted though the owner concerning it plugins furnish such namely a paid service.
help with dissertation

<
  • 0 Comments
  • 0 Articles
11 February 2018 09:58

ali

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
This is very useful, although it will be important to help simply click that web page link: Health Benefits of Sauerkraut
In this article understand the most important thing, the item will give you a keyword rich link a great useful website page: Health Benefits of Sauerkraut

<
  • 0 Comments
  • 0 Articles
12 February 2018 09:02

ali

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
It is rather very good, nevertheless glance at the data with this handle. Rutabagas

<
  • 0 Comments
  • 0 Articles
14 February 2018 08:27

ustad

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
The most interesting text on this interesting topic that can be found on the net ... Cucumber

<
  • 0 Comments
  • 0 Articles
15 February 2018 06:38

afzal

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
I should say only that its awesome! The blog is informational and always produce amazing things. Best and Worst Foods for Lung

<
  • 0 Comments
  • 0 Articles
27 February 2018 00:00

Anna Julia

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Presently we have a lot of modules that we uses on account of jquery then since stacking depictions as well.Many helpful articles allow it into continuous however the proprietor concerning it modules outfit such to be specific a paid administration. thesis writer uk

Information
Comment on the news site is possible only within (days) days from the date of publication.