how to display a image in footer only when a webpage is being visited?

the footer is with all the webpages, but i just want it to display only when a page is read, ex. index.php


please help, thanks.