Related to Google Display ads, I want an image on several pages to be different if the page is referred from an outside source versus an internal link. So the image source on this one image needs to conditional based on the link source. I presently have 2 versions of these pages but its a bit messy with canonical links etc. The web site uses .php.
This is the line with the image link for pages called internally. Just need to change "src=" for outside referrers.
<img style="float:right;margin:-27px -2px 10px 15px;
box-shadow:-6px 11px 30px 0px #a7a7a7;"
src="rotate-home/rotate.php?t=<?php echo time(); ?>"
width="426"
height="236"
/>