GeeCON Prague 2014*
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: 61315
    
  66

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: 61315
    
  66

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