Im using my tracking software which allows me to call out parameters on my website such as geo, ip, OS etc.
What Im trying to do is have the parameter be written before then image name. Since we have to target specific cities, we place an image of the city's name in the website. So we have 50 Images, but it would take too long to make 50+ landing pages for each city, so it'd be easier to call out the parameter on the image tag, and have the images on the server. really hard to explain since im not a developer.
<img src="index_files/<script>document.write(getURLParameter("region"))</script>.jpg">
i tried this but didn't work.
<img src="index_files/New%20Jersey.jpg"
// i want to replace New%Jersey.jpg with a variable
<script>document.write(getURLParameter("region"))</script>
// this code calls out the region on the lander.
I just want to be able to get that parameter call out to replace the image name.