How to show an image based on referring url

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Stunn

    How to show an image based on referring url

    Hello, I have been trying to find a piece of code which would show an image based on referring url.

    How would I go about displaying say Image1.png if a user came from "http://www.mysite.com" ?

    and if else they came from somewhere else how would I display a default image?

    any help would be greatly appreciated on this matter as this is nowhere to be found online.
    Last edited by MMcCarthy; Nov 2 '10, 08:33 AM. Reason: moved from old thread
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    document.referr er is what you're looking for.

    Comment

    Working...