I have a site which is advertising different brands, so for each different brand I have a new page, as each brand has their own logo I want this to change based on the current page being viewed. Is this something I can achieve with JavaScript?
Logo example:
<a href="/home" class="logo"><img src="images/header/logo.png?" width="62" height="53" alt="" /></a>
A simple CSS solution might work too. You could place a class in the body with the name of the brand and use CSS to serve up the logo image.
in css
Then in your HTML
or
Of course this would assume that you can dynamically put the brand name as a class into some tag before the logo (like the body tag or a container div) in which case you could also just dynamically name the image path in the code.