更新时间:2023-12-04 23:51:10
在此页面上不幸没有像jquery演示那样的解释。但是有一个很容易监督的链接,所以我在这里发帖给你: imageQ-Demo 。
如果您阅读源代码,则imageQ的源代码将嵌套在< head>< / head>中的scripttag中;
部分。我建议您将此源代码移动到一个额外的文件中。
自定义代码嵌套在< body>< / body>
section。
你要找的是
unfortunatly on this page there is no explaination, like jquery demos. But there is a link which is easy to oversee, so I post it for you here: imageQ-Demo.
If you read the source code, the source of imageQ it self is nested within scripttag in the <head></head>
section. I recommend that you move this source code into an extra file.
The customised code ist nested within the <body></body>
section.
What you look for is
<script type="text/javascript">
//Make an instance of imageQ
imagesQueue = imagesQ;
//Define the url of all your images
imagesQueue.queue_images (['', '', ...]);
//Start the preloading
imagesQueue.process_queue();
</script>
希望它能帮到你。
顺便说一句,谢谢你的链接。 ;-)
Btw, thank you for this link. ;-)