This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

onclick - image

 
Roopa Bagur
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,
I am working on an application with JSP's which has images for tabs for the main menu.Here is the requirement.
Requirement:When you click on the tab which is an image the image changes & calls a jsp
I was wondering what was the best way to implement this requirement.
I would appreciate a quick response..
Thanks,
Roopa
 
Nehal Dave
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,
I am working on an application with JSP's which has images for tabs for the main menu.Here is the requirement.
Requirement:When you click on the tab which is an image the image changes & calls a jsp
>>
To change the image on click u need to use javascript. This can be done by making a link on image & then calling a javascript function onclick event. This function will just change the src of the image which u need to change. Altenatively u can preload the image which will be displayed on click so that their is no time delay for the new image to be seen. As for calling the jsp.. it will be the href of the link.
Hope this helps u ..
Cheers
Nehal.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic