如何为使用以下javascript创建的图像添加链接.
感谢您的任何帮助或回复.
for(var i=0; i<images.length; i++) {
var t = document.createElement('IMG');
t.setAttribute('src',images[i]);
t.setAttribute('border', 0);
t.setAttribute('width',imageWidth);
t.setAttribute('height',imageHeight);
t.style.position = 'absolute';
t.style.visibility = 'hidden';
el.appendChild(t);
}
Run Code Online (Sandbox Code Playgroud) javascript ×1