The moose likes HTML, CSS and JavaScript and the fly likes buttons to update image on html Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "buttons to update image on html" Watch "buttons to update image on html" New topic
Author

buttons to update image on html

light wt
Greenhorn

Joined: Dec 11, 2001
Posts: 5
Hi,

I want to use one html file to display different images on the page by clicking two buttons. This button is named forward. The other button is named backward which will go render the previously displayed image.
Let�s use http://light_wt.tripod.com/ff/pages/jr038.htm as an example. When the right arrow is clicked, a new page is displayed. What I need is no change on the html page. Only update the image where the red cross is located. So, jr039.html will display the image in jr040. and etc.
Currently the directory structure is:
./pages/jr038.htm
./images/jr*.jpg
Thanks!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
Your name isn't even close to the JavaRanch Naming Policy. Your name should be two words, firstname then lastname with a space in the middle. This naming policy is enforced to promote a professional atmosphere in the forums.
Note: I once used a name like yours and I have since changed it. My post can be seen here:
My First Name Experience
You can change your display name here:
http://www.coderanch.com/forums/user/edit
Eric

To answer your question, you are looking for a basic slideshow script. Goto a site like www.javascriptkit or www.dynamicdrive.com to find it.
 
 
subject: buttons to update image on html
 
Threads others viewed
Form in NetBeans
How to use images in jsp
how to display images on JSP in struts2
Pagination using jsp
Robust Image Preloading - on the fly
IntelliJ Java IDE