Is there a way to use JavaScript to remove unwanted data. For example in this address:
url("assets/images/films/deor/films_deor_ip_full_1.jpg")
I'd use a regular expression to extract the number, for example:
var url = "assets/images/films/deor/films_deor_ip_full_1.jpg";
var regex = /_(\d+)\.jpg$/i;
var imgNumber = parseInt(regex.exec(url)[1], 10);