Loading....
Html input form shows image before uploads
function max_width(w) {
if(window.innerWidth <= w) {
returntrue;
} else {
returnfalse;
}
}
var profits=2489.8237
profits.toFixed(3)//returns 2489.824 (round up)
profits.toFixed(2)//returns 2489.82
profits.toFixed(7)//returns 2489.8237000 (padding)
$(document).ready(function() { var fancy_top = ""; $("[id^='fancy_popup']").fancybox({ 'width' : '75%', 'height' : '75%', 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe', 'afterClose' : function() { document.body.scrollTop=fancy_top; $('html, body').animate({ scrollTop:fancy_top });}, 'beforeLoad' : function() { var fancy_top = document.body.scrollTop; } }); $('.fancybox').fancybox(); });
[php] <style type="text/css" id="page-css"> #loading { z-index:1000; position:absolute; width:100%; height:100%; overflow:hidden; background-color:#fff;} #loading .middle { position:absolute; width:100%; margin-top: -24px; top: 50%; height:52px; text-align:center;} #loadingBg { position:absolute; width:100%; height:100%; overflow:hidden; background-color:#fff; display:none;} #loadingBg .middle { position:absolute; width:100%; margin-top: -24px; top: 50%; height:52px; text-align:center;} </style> <script type="text/javascript" id="sourcecode"> window.onload = function() { $("#loading").delay(100).fadeOut(1000); } </script> <body> <div id="loading"> <div class="middle"> <div class="inner"> <img src="{RootDir}{TempDir}assets/css/img/yukleniyor.gif" alt="" /> </div> </div> </div> [/php]