displaying an image based on the URL of the website
Posted on 2004-10-18
i have a website that has 3 different urls and they are all going to the same IP
i have a single image that says the name of the site on the top of all my pages
i want to create 3 differetn images each showing a different domain name and i would like to get it so depending on the URL the person entered the site, it shows the right image so the domain and the graphic is consistent with the site name.
wondering how id write the script to check for the requested URL server variable and then have the href that displays the image swap to the appropriate version of the image based on the URL