How to display an image in footer only when a certain page is being visited?

I inserted an image in footer , and every webpage includes the footer, but I want it will be displayed only when a certain page is read, example, index.php.

How to make it with Javascript? please advise. thanks.