幻灯片背景图像

发布于 2024-09-12 18:44:15 字数 280 浏览 7 评论 0原文

我用背景图像制作了幻灯片。您可以在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

以酷 2024-09-19 18:44:15

您需要预加载图像,请参阅:

使用 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 in load also.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文