This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes change the logo of the web site  on  fly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "change the logo of the web site  on  fly" Watch "change the logo of the web site  on  fly" New topic
Author

change the logo of the web site on fly

ramanuja varun
Ranch Hand

Joined: Aug 31, 2007
Posts: 47
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
Marshal

Joined: Mar 22, 2005
Posts: 41062
    
  43
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 ]

Ping & DNS - my free Android networking tools app
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60755
    
  65

To change it from the client, in JavaScript, simply change the src value of the <img> tag.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: change the logo of the web site on fly
 
Similar Threads
New logo
Sun Logo download error for SCJP 1.5
Look and Feel of Java Ranch
The moose logo hurts
New SCJP 5.0 Free Exam Simulator