< div id ="preloaderbg" class ="centerbg1" > < div class ="centerbg2" > < div id ="preloader" ></ div > </ div > </ div > < script type ="text/javascript" > document .getElementById( 'preloaderbg' ).style.display = 'block' ; document .body.style.overflow = 'hidden' ; </ script > * This source code was highlighted with Source Code Highlighter .
< div id ="preloaderbg" class ="centerbg1" > < div class ="centerbg2" > < div id ="preloader" ></ div > </ div > </ div > < script type ="text/javascript" > document .getElementById( 'preloaderbg' ).style.display = 'block' ; document .body.style.overflow = 'hidden' ; </ script > * This source code was highlighted with Source Code Highlighter .
< div id ="preloaderbg" class ="centerbg1" > < div class ="centerbg2" > < div id ="preloader" ></ div > </ div > </ div > < script type ="text/javascript" > document .getElementById( 'preloaderbg' ).style.display = 'block' ; document .body.style.overflow = 'hidden' ; </ script > * This source code was highlighted with Source Code Highlighter .
< div id ="preloaderbg" class ="centerbg1" > < div class ="centerbg2" > < div id ="preloader" ></ div > </ div > </ div > < script type ="text/javascript" > document .getElementById( 'preloaderbg' ).style.display = 'block' ; document .body.style.overflow = 'hidden' ; </ script > * This source code was highlighted with Source Code Highlighter .
< div id ="preloaderbg" class ="centerbg1" > < div class ="centerbg2" > < div id ="preloader" ></ div > </ div > </ div > < script type ="text/javascript" > document .getElementById( 'preloaderbg' ).style.display = 'block' ; document .body.style.overflow = 'hidden' ; </ script > * This source code was highlighted with Source Code Highlighter .
< div id ="preloaderbg" class ="centerbg1" > < div class ="centerbg2" > < div id ="preloader" ></ div > </ div > </ div > < script type ="text/javascript" > document .getElementById( 'preloaderbg' ).style.display = 'block' ; document .body.style.overflow = 'hidden' ; </ script > * This source code was highlighted with Source Code Highlighter .
< div id ="preloaderbg" class ="centerbg1" > < div class ="centerbg2" > < div id ="preloader" ></ div > </ div > </ div > < script type ="text/javascript" > document .getElementById( 'preloaderbg' ).style.display = 'block' ; document .body.style.overflow = 'hidden' ; </ script > * This source code was highlighted with Source Code Highlighter .
< div id ="preloaderbg" class ="centerbg1" > < div class ="centerbg2" > < div id ="preloader" ></ div > </ div > </ div > < script type ="text/javascript" > document .getElementById( 'preloaderbg' ).style.display = 'block' ; document .body.style.overflow = 'hidden' ; </ script > * This source code was highlighted with Source Code Highlighter .
< div id ="preloaderbg" class ="centerbg1" > < div class ="centerbg2" > < div id ="preloader" ></ div > </ div > </ div > < script type ="text/javascript" > document .getElementById( 'preloaderbg' ).style.display = 'block' ; document .body.style.overflow = 'hidden' ; </ script > * This source code was highlighted with Source Code Highlighter .
< div id ="preloaderbg" class ="centerbg1" > < div class ="centerbg2" > < div id ="preloader" ></ div > </ div > </ div > < script type ="text/javascript" > document .getElementById( 'preloaderbg' ).style.display = 'block' ; document .body.style.overflow = 'hidden' ; </ script > * This source code was highlighted with Source Code Highlighter .
< div id ="preloaderbg" class ="centerbg1" > < div class ="centerbg2" > < div id ="preloader" ></ div > </ div > </ div > < script type ="text/javascript" > document .getElementById( 'preloaderbg' ).style.display = 'block' ; document .body.style.overflow = 'hidden' ; </ script > * This source code was highlighted with Source Code Highlighter .
* This source code was highlighted with Source Code Highlighter .
- .centerbg1 {
- display: none;
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0px;
- left: 0px;
- z-index: 1000;
- background: url ( '/design/im/texture1.jpg' ) # 3c363e;
- }
- .centerbg2 {
- position: absolute;
- left: 50%;
- top: 50%;
- }
- #preloader {
- top: -50%;
- left: -50%;
- position: relative;
- width: 333px;
- height: 26px;
- background: url ( '/content/pages/articles/preloaders/bg2.gif' );
- border: solid # edda3d 2px;
- }
* This source code was highlighted with Source Code Highlighter .
- document .getElementById ( 'loaderbg' ) .style.display = 'none' ;
- document .body.style.overflow = 'visible' ;
* This source code was highlighted with Source Code Highlighter .
- <script type = "text / javascript" >
- document .getElementById ( 'loaderbg' ) .style.display = 'block' ;
- document .body.style.overflow = 'hidden' ;
- pbPos = 0;
- pbInt = setInterval ( function () {
- document .getElementById ( 'preloader' ) .style.backgroundPosition = ++ pbPos + 'px 0' ;
- }, 25);
- </ script>
* This source code was highlighted with Source Code Highlighter .
- clearInterval (pbPos);
- document .getElementById ( 'loaderbg' ) .style.display = 'none' ;
* This source code was highlighted with Source Code Highlighter .
- < div id = "loaderbg" class = "centerbg1" >
- < div class = "centerbg2" >
- < div id = "preloader" >
- < img alt = "Loading ..." src = "/ design / im / progbar_ph.gif" />
- < div id = "progbarfg" > </ div >
- </ div >
- </ div >
- </ div >
#progbarfg {width: 0px; background: url('/design/im/progbar_fg.png')}
< script type ="text/javascript" >
dLoader.start( 'progbarfg' , 333, 'count' );
</ script >
* This source code was highlighted with Source Code Highlighter .
- <script type = "text / javascript" >
- dLoader.start ( 'mainprogbarfg' , 333, 'size' , function () {$ ( '#preloaderbg' ) .fadeOut (250);});
- </ script>
* This source code was highlighted with Source Code Highlighter .
- function fn (callBack) {
- $ .get ( '/' , params , function (data) {someHandler (data); eval (callBack);});
- }
* This source code was highlighted with Source Code Highlighter .
- $ data [ 'js' ] = array (
- array ( 'path' => 'jquery-1.2.6.min.js' , 'size' => filesize ($ jsRoot. '/jquery-1.2.6.min.js' )),
- array ( 'path' => 'functions.js' , 'size' => filesize ($ jsRoot. '/functions.js' ))
- );
- $ data [ 'im' ] = GetFiles ($ imgRoot, true );
- $ data [ 'invoke' ] [] = array (
- 'action' => 'loadTemplates' ,
- 'size' => GetDirSize (dirname (__ FILE__). '/ design / ajax templates /' , false )
- );
- $ data [ 'jspath' ] = '/ design / js /' ;
- $ data [ 'impath' ] = '/ design / im' ;
* This source code was highlighted with Source Code Highlighter .
- dLoader.userProgress = function (bytesLoaded, totalBytes) {doSmth (); }
Source: https://habr.com/ru/post/46210/
All Articles