How can you create an image src automatically named after the current Url? For instance xxy.html creates an img src for xxy.jpg , file paths will be the same for the .html and .jpg files and all images will be .jpg and all pages .html. Am not using php, but can implement javascript, jquery or css solutions!
In case that didn't make sense I just need a code that reads the current page url, and enables img src="(name of current page -".html") .jpg