This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 63208
    
  69

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: 63208
    
  69

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Scrolling Images in HTML page
 
It's not a secret anymore!