 {
try {
return (document.createElement('canvas').toDataURL('image/webp').indexOf('data:image/webp') == 0);
} catch (err) {
return false;
}
}
if (!checkWebp()) {
var allimgs = document.getElementsByTagName()
=860)
twidth = (860 / 4 * 0.96);
var theight = (twidth / parseInt(tsize.split("x")[0])) * parseInt(tsize.split("x")[1]);
for (i = 0; i < tplist.length; i++) {
if (tplist[i].className == "tp_list") {
var timgs = tplist[i].getElementsByTagName("img");
for (n = 0; n < timgs.length; n++) {
timgs[n].style.height = theight.toString() + "px";
}
}
}
}
//setthumbsize();
window.onresize = function () {
// setthumbsize();
}