幻灯片背景图像
我用背景图像制作了幻灯片。您可以在 http://www.mikevierwind.nl/websites/test/ 上看到此内容
您会在标题中看到幻灯片。在这里您可以看到旋转的图像。但现在的问题是什么。
当幻灯片显示新图像时。图像正在加载。每次幻灯片放映时都会放置一个新图像。必须重新加载此图像。我怎样才能使图像加载一次?
谢谢。
I have make a slideshow from background images. You can see this on http://www.mikevierwind.nl/websites/test/
You see the slideshow in the header. Here you see image that rotate. But what is now the problem.
When the slideshow show a new image. The image is going loading. Everytime that the slideshow place a new image. This image must be loaded again. How can i make, that the image loading one time?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要预加载图像,请参阅:
使用 jQuery 和预加载图像JavaScript
另请注意,使用
load
事件中的代码,所有图像都会按时间加载。也尝试将您的代码放入load
中。You need to preload the images, see:
Preloading Images with jQuery and JavaScript
Note also that with your code in
load
event, all the images are loaded by the time. Try putting your code inload
also.