File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Scrolling  Images in HTML page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Scrolling  Images in HTML page " Watch "Scrolling  Images in HTML page " New topic
Author

Scrolling Images in HTML page

Sultan Khadar
Ranch Hand

Joined: Sep 12, 2006
Posts: 75
Hi All,
I have a folder c:\Images, containing some images. Now I want to display all these images (scrolling) in my HTML page. for this I am using the following code.

<MARQUEE> <Img src="c:\Images\image1.jpg" width ="30%" height="20%>
.........................................................
.........................................................
</MARQUEE>

for each image , i am adding one <IMG> Entry. Is there any other simple way to do this? I mean Is there a way so that i can simply refer my base folder and all the images automatically being displayed.

Please Help to solve this.
Thanks in advance.
Regards,
Khadar.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Not without server-side code. The JavaScript on the client has no access to any file system, either on the client or on the server.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

By the way you do realize that by using:



that your page will only work when the browser is being run on the same machine as the server, right?
 
jQuery in Action, 2nd edition
 
subject: Scrolling Images in HTML page
 
Similar Threads
Relative path Issue
Problem with error page example
how to call javascript function from jsf
how to see the multiple images from database
TIF IMAGE IS NOT SHOWING UP - URGENT