If you are unable to modify the code and add an ID, consider the following options:
As previously recommended,
If the image is the first one:
document.getElementsByTagName("img")[0].src="anotherimage.jpg";
Using a function:
function changeimage(newimage){
document.getElementsByTagName("img")[0].src=newimage;
}
changeimage("anotherimage.jpg");
If you are unsure if it's the first image but know the name, search for it:
var
imgs=document.getELementsByTagName('img'),
l=imgs.length;
while(l--){
if(imgs[l].src=='/themes/musika/images/logo.png'){
imgs[l].src='anotherimage.jpg';
}
}
Function:
function changeimage(newimage){
var
imgs=document.getELementsByTagName('img'),
l=imgs.length;
while(l--){
if(imgs[l].src=='/themes/musika/images/logo.png'){
imgs[l].src=newimage;
}
}
}
changeimage('newimage.jpg');