//根据分辨率自适应热区坐标
function changeCoords(){
var width = document.body.offsetWidth;
var height = document.body.offsetHeith;
if (1920 == width) return;
var percent = width/1920;
$(".act").each(function(){
var coords = $(this).attr("coords");
var arr = coords.split(",");
for(var i=0;i<arr.length;i++){
arr[i] *= percent;
}
var str = arr.join(",");
$(this).attr("coords",str);
});
}
function changeCoords(){
var width = document.body.offsetWidth;
var height = document.body.offsetHeith;
if (1920 == width) return;
var percent = width/1920;
$(".act").each(function(){
var coords = $(this).attr("coords");
var arr = coords.split(",");
for(var i=0;i<arr.length;i++){
arr[i] *= percent;
}
var str = arr.join(",");
$(this).attr("coords",str);
});
}