//给点击的图片 高清无码
function gaoqingwuma(img){ //传入img标签
// console.log(img.src)
var sXiaoyao = ''
sXiaoyao+= '<div id="xiaoyao_gaoqingwuma" align="center" style="background-color:rgba(96, 125, 139, 0.48); position: fixed;margin: 0 auto;">'
sXiaoyao+='<img src="'+img.src+'" style="width:40%;">'
sXiaoyao+='</div>'
append(document.body,sXiaoyao)
document.getElementById("xiaoyao_gaoqingwuma").onclick=function(){
document.body.removeChild(this)
}
function append(parent, text) {
if (typeof text === 'string') {
var temp = document.createElement('div');
temp.innerHTML = text;
// 防止元素太多 进行提速
var frag = document.createDocumentFragment();
while (temp.firstChild) {
frag.appendChild(temp.firstChild);
}
parent.appendChild(frag);
}
else {
parent.appendChild(text);
}
}
}