使用JavaScript或Jquery在页面中显示PageLoad图像

人气:260 发布:2022-09-22 标签: jquery javascript asp.net c# ASP.NET

问题描述

嗨 我刚刚成功登录后创建了一个登录页面和一个重定向页面,以重定向到该特定页面。在这个重定向过程中,我喜欢有一个包含一些内容的页面加载图像,我喜欢在页面完全加载时显示这个页面加载图像。我是否需要创建一个单独的aspx页面,其中包含页面加载图像和内容。我可以在页面加载期间调用此aspx页面。我不想让我的实际页面睡觉以显示此加载图像页面。我想要这个加载图像页面只有当一个页面需要时间来加载它的整个页面。 是他们的任何解决方案使用javascript或jquery。 所以请帮我解决这个问题 谢谢。

解决方案

这个 [ ^ ]似乎就是你要找的。

Hi i just created a login page and one redirecting page after the login successfully done to redirect to that specific page. during this redirection process i like to have a pageload image with some content to it, i like to display this pageload image untile the page gets completely loaded. Do i need to create a separate aspx page which contains the pageload image and content to it. and can i call this aspx page during the page get loading period. i dont want to make my actual page to sleep for displaying this Load image page. i want this load image page only when ever a page takes time to load its entire page. Is their any solution using javascript or jquery. So please help me for this issue Thank you.

解决方案

This[^] seems to be what you are looking for.

837