我已经(非常轻微地)修改了Mootools类noobSlide(http://www.efectorelativo.net/laboratory/noobSlide/)来创建一个flickr风格的照片流。
这是修改过的html(注意你可以看到上页的原文)
print("code sample");<h2>Sample 2</h2>
<div class="sample">
<div class="mask4">
<div id="box2">
<span><img src="img1.jpg" alt="Photo" /></span>
<span><img src="img2.jpg" alt="Photo" /></span>
<span><img src="img3.jpg" alt="Photo" /></span>
<span><img src="img4.jpg" alt="Photo" /></span>
<span><img src="img5.jpg" alt="Photo" /></span>
<span><img src="img6.jpg" alt="Photo" /></span>
<span><img src="img7.jpg" alt="Photo" /></span>
</div>
</div>
<p class="buttons">
<span id="prev1"><< Previous</span>
<span id="next1">Next >></span>
</p>
这是JS
print("code sample");//SAMPLE 2
var hs2 = new noobSlide({
box: $('box2'),
items: [1,2,3,4],
size: 500,
interval: 3000,
buttons: {
previous: $('prev1'),
next: $('next1')
}
});
我想知道的是如何添加一个ajax调用,我有大约50个图像,我只想加载大约5个(实际上我想我一次只需要加载2个)。
所以我想了解如何使用原生mootools ajax类/函数将nojax添加到noobslide
thnkx