From 557f20198fb89fe2256edd48f0a6a79801d761c6 Mon Sep 17 00:00:00 2001 From: Alib Date: Thu, 18 Mar 2010 21:55:28 +0100 Subject: fixed centering loading when scrolled down --- css/istreamdev.css | 10 +++------- index.html | 3 ++- js/istreamdev.js | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/css/istreamdev.css b/css/istreamdev.css index 493eeb1..5d48d98 100644 --- a/css/istreamdev.css +++ b/css/istreamdev.css @@ -1,8 +1,6 @@ - div.loader { font-family: Arial, Helvetica, sans-serif; font-size: 14px; - background-image: url(../img/loading.gif); background-repeat: no-repeat; background-position: 50% 50%; @@ -10,13 +8,11 @@ div.loader { vertical-align: middle; height: 100%; width: 100%; - position: absolute; - z-index: 10; - left: 0px; - top: 0px; + z-index: 100; + left: 0; opacity: .85; display: block; - + position: absolute; } ul li img.menuicon { diff --git a/index.html b/index.html index d41ce9f..425e5fb 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,8 @@
-
+ +

HOME

diff --git a/js/istreamdev.js b/js/istreamdev.js index fa9acb9..cffc610 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -70,7 +70,7 @@ $('#home_but').tap(function(event) { function json_start(button) { $(button).addClass('active'); $('#loader').addClass("loader"); - + $('#loader').css("top", window.pageYOffset); } function json_complete(destination,effect) { $('#loader').removeClass("loader"); -- cgit v1.2.3