我有一个 asp.net 工程, 我想显示进度图象 (GIF) < strong >, 不使用 AJAX < /strong >, 也不使用简单的 java 标注的 DIV 魔术 。
我只想在主页(asp.net 主页)上放一个 div (显示动画时钟, 而页面正在加载) (asp.net 主页, 所以我不需要在每页内容页面上重复代码), 并在页面负荷进行时显示它 。
我希望你明白我想做什么
谢谢
我有一个 asp.net 工程, 我想显示进度图象 (GIF) < strong >, 不使用 AJAX < /strong >, 也不使用简单的 java 标注的 DIV 魔术 。
我只想在主页(asp.net 主页)上放一个 div (显示动画时钟, 而页面正在加载) (asp.net 主页, 所以我不需要在每页内容页面上重复代码), 并在页面负荷进行时显示它 。
我希望你明白我想做什么
谢谢
你能做到这样
<body style="background-color:#FFFFFF;" onLoad="init()">
<div id="loading" style="position:absolute; width:200px; height:163px; text-align:center;top:310px; left:487px;">
<img src="images/loading.gif" border=0 style="margin:38px"/>
</div>
<script>
var ld=(document.all);
var ns4=document.layers;
var ns6=document.getElementById&&!document.all;
var ie4=document.all;
if (ns4)
ld=document.loading;
else if (ns6)
ld=document.getElementById("loading").style;
else if (ie4)
ld=document.all.loading.style;
function init()
{
if(ns4){ld.visibility="hidden";}
else if (ns6||ie4) ld.display="none";
}
</script>
在文档正文中创建 2 区域
<div id="progress">
// Code for gif image
</div
<div id="content" style="display:none;">
// Whole page content
</div>
之后包括这个喷射笔记本,不在页眉中
<script>
document.getElementById("progress").style.display = none ;
document.getElementById("content").style.display = block ;
</script>
如果您知道 jQuery, 您可以在$( document) 上做类似的事情。 ready () 事件
In my webpages I have references to js and images as such: "../../Content/Images/"Filename" In my code if I reference a file as above, it doesnt work so i have to write: "c:/miscfiles/"filename" 1-...
I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...
Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...
I m looking for best practices here. Sorry. I know it s subjective, but there are a lot of smart people here, so there ought to be some "very good" ways of doing this. I have a custom object called ...
I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...
i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...
For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?
I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!