如果第一次没有在用户浏览器中加载图像,是否有自动重新加载图像的代码? [英] is there code to auto reload images if it doesn't loaded first time in users browser?

查看:48
本文介绍了如果第一次没有在用户浏览器中加载图像,是否有自动重新加载图像的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果第一次在用户浏览器中没有加载图像,是否有自动重新加载图像的代码?

Is there code to auto reload images if it doesn''t load at first time in users browser ?

推荐答案

这是你无法用PHP做的事情,因为PHP在浏览器中的页面之前很久就完成了。未加载的图像是无效的图像URL或连接超时(对图像文件)(或者我不知道的事情)。
this is nothing you can do from PHP, because PHP finished long before the page in the browser. an image not loading is either an invalid image URL or a connection timeout (to the image file) (or something I don?t know).


为什么不加载? oO

我之前遇到过这个问题。
Why wouldn''t it load? o.O
I''ve nvr had that problem before.


嗨感谢回复

因为dormilich说可能没有加载因为连接超时或apache服务器容量导致503错误,但如果用户刷新它会解决所有问题,但我需要一个代码(如果用户得到503 apache错误,则自动刷新网站)(如果我没有自动重新加载图像)在用户的浏览器中加载了

是否有这样的东西?
hi Thanks for reply
as dormilich said maybe not loaded because connection timeout or apache server capacity that cause 503 error , but it all solves if the user refresh it , but i need a code to ( auto refresh the website if user got 503 apache error ) ( and auto reload the image if i didn''t loaded in user''s browser )
is there something like that ?


这篇关于如果第一次没有在用户浏览器中加载图像,是否有自动重新加载图像的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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