This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

change the logo of the web site on fly

 
ramanuja varun
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir, I would like to know if it is possible to change the logo of the web site on the fly.Please let me know what will I have to do to enable the change of logo on the fly.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly do you mean by that? If -instead of one particular image- you want to show some other image on a web page, then you need to change the HTML of that page to point to the other image. Creating the page dynamically using JSP (or some such technology) makes this easier.

Alternatively, you can replace the image file on the web server with the new image.
[ December 18, 2008: Message edited by: Ulf Dittmer ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To change it from the client, in JavaScript, simply change the src value of the <img> tag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic