Сообщение от mastersss
|
Остается надежда на jquery
|
Опробовать нет возможности...
<!DOCTYPE html>
<html>
<head>
<script src='http://code.jquery.com/jquery-latest.js'></script>
<!--
<script src="https://code.angularjs.org/1.3.9/angular.min.js"></script>
<script src="https://code.angularjs.org/1.3.9/angular-route.js"></script>
<link rel='stylesheet type=text/css href=tmp.css' />
-->
<style type='text/css'>
.circle-1 {
background: url("images/1_icon2.png") no-repeat 0 0;
}
.vvv {
background: url("images/2_icon2.png") no-repeat 0 0;
}
.kkkk {
background: url("images/3_icon2.png") no-repeat 0 0;
}
.qwqwqw {
background: url("images/4_icon2.png") no-repeat 0 0;
}
.bnmbnm {
background: url("images/5_icon2.png") no-repeat 0 0;
}
.poipoi {
background: url("images/6_icon2.png") no-repeat 0 0;
}
.circle-7 {
background: url("images/7_icon2.png") no-repeat 0 0;
}
</style>
<script type='text/javascript'>
$(function(){
$('.my').each(function(){
var re=/^.*(images\/\d+_icon2\.png)(?=\)$)/
var url=$(this).css('background-image');
url=url.replace(re,'url(http://site.ru/folder1/1/$1')
$(this).css('background-image',url);
$(this).text(url);
});
});
</script>
</head>
<body>
<div class="my circle-1"></div>
<div class="my vvv"></div>
<div class="my kkkk"></div>
<div class="my qwqwqw"></div>
<div class="my bnmbnm"></div>
<div class="my poipoi"></div>
<div class="my circle-7"></div>
</body>
</html>