通用处理程序问题 [英] generic handler question

查看:78
本文介绍了通用处理程序问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页,该网页使用通用图像处理程序显示图像.加载图像需要花费几秒钟的时间,因此页面的其余部分在加载图像之前就已完成.我正在使用一个叠加层(使用div显示正在加载...),一旦生成并显示了html,该代码就会被代码隐藏文件隐藏.
但是问题在于图像仍在加载并且覆盖层消失了.
无论如何,是否可以从处理程序中控制div或在隐藏代码的页面中找出图像已完成加载?

I have a webpage that displays an image using a generic imagehandler. the image takes a few seconds to load, so rest of the page is completed before the image is loaded. I am using an overlay (using a div showing loading...) that is hidden by the code-behind file once the html is generated and displayed.
But the problem is that the image is still loading and the overlay has gone.
Is there anyway to control the div from the handler or to figure out in code-behind page that the image has completed loading?

推荐答案

您好,

也许您可以在这里找到一些有用的信息:
http://www.dynamicdrive.com/dynamicindex4/preloadimage.htm http://hungred.com/how-to/tutorial -how-to-add-preloader-loading-image-gallery-jquery/
Hi,

Maybe you could find some usefull info here:
http://www.dynamicdrive.com/dynamicindex4/preloadimage.htm

Or a jquery solution:
http://hungred.com/how-to/tutorial-how-to-add-preloader-loading-image-gallery-jquery/

Regards
Joachim


我找到了解决问题的方法.这是一种解决方法,但适用于我的情况

我在加载图片时使用了背景加载图片
http://stackoverflow.com/questions/4635388/如何在实际图像下载过程中显示图像 [
I found a solution to my problem. It is a workaround but worked for my situation

I used a background loading image for the image while it was loading
http://stackoverflow.com/questions/4635388/how-to-display-loading-image-while-actual-image-is-downloading[^]


这篇关于通用处理程序问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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