I've been searching around internet for quite a few hours, but couldn't find a solution that would work for me.

site has 2 domains. I would like to do a logo image swap, based on domain that the site is accessed from.

domain1 = image1
domain2 = image2

I did found php solutions, but I can't really use php in this case, site has idiotic coding.

Are there javascript or any other alternatives how to do this ?