图像加载器打开时屏幕褪色 [英] screen fade during image loader is on

查看:79
本文介绍了图像加载器打开时屏幕褪色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用ASP经典页面.在单击此asp经典页面的按钮时,我正在显示加载程序图像.我希望在显示加载程序图像时该屏幕应褪色.我该怎么用javascript做到呢?

Hi folks,

I am using an asp classic page. On click on the button of this asp classic page, I am showing the loader image. I want that screen should get fade while loader image is display. How can i do that by javascript?

推荐答案

我建​​议使用jQuery.这会给你一个好主意:
http://www.mkyong.com/jquery/page-loading-effects-with-jquery / [ ^ ].

在上面引用的文章中显示的代码示例中,当文档准备就绪时,有些东西会淡入淡出,但是您可以执行其他操作.请查看该库提供的效果:
http://api.jquery.com/category/effects/ [ http://api.jquery.com/animate/ [
I would advise to use jQuery. This will give you a good idea:
http://www.mkyong.com/jquery/page-loading-effects-with-jquery/[^].

In the code samples shown in the article referenced above, something is fade in when the document is ready, but you can do something else. Please review the effects available with this library:
http://api.jquery.com/category/effects/[^].

More complex effects can be created using any combination of CSS properties and the method .animate(). It will allow to modify any property values smoothly in an animated motion. Please see:
http://api.jquery.com/animate/[^].

—SA


这篇关于图像加载器打开时屏幕褪色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆