This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60740
    
  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: 60740
    
  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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Scrolling Images in HTML page
 
Similar Threads
how to call javascript function from jsf
how to see the multiple images from database
Problem with error page example
Relative path Issue
TIF IMAGE IS NOT SHOWING UP - URGENT