如何在Java中将图像集合添加到src中? [英] how to add collection of images to a src in Javascript?

查看:158
本文介绍了如何在Java中将图像集合添加到src中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!如果我有一个包含图像集合的文件夹,请说10.如果我想将该文件夹添加到src中,如
<image id="img" src="Images_Folder" />

<img id="img" src="Images/2106003206.png" height="300" width="400"/>
当我为src写作时,这里是Collection中的第一张图片.是否有其他方法可以添加该文件夹?我必须将其添加到我的相册文件夹中,以便在其中显示幻灯片...:-)

Hi every one!If i have a folder which contains a collection of images say 10.If i wanna to add that folder to the src like
<image id="img" src="Images_Folder" />

<img id="img" src="Images/2106003206.png" height="300" width="400"/>
when i am writing for src here am getting the First image in the Collection.Is there any other way to add that folder?I have to add that to my Album folder where i have to Show a SlideShow... :-)

推荐答案

为什么不使用Jquery.使用Jquery的代码少得多,有无数种方法可以实现.
在这里有样品

a-simple-jquery-slideshow

Why dont you use Jquery. There are a myriad ways to accomplish this using Jquery with very less code.
have samples here

a-simple-jquery-slideshow

9-jquery-slideshow-applications-you-cannot-miss/


使用AJAX CONTROLS ..比使用JavaScript更好..
it would be better using AJAX CONTROLS..than javaScript..


这篇关于如何在Java中将图像集合添加到src中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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