test add link

This commit is contained in:
liujianhuan 2020-07-01 13:38:13 +08:00
parent e96745d292
commit f7cf369b91
1 changed files with 10 additions and 11 deletions

View File

@ -1,12 +1,11 @@
window.onload = function() {
var obox = document.createElement("div")
obox.innerHTML = '<a href="https://u.jd.com/Uj4bve" target="_blank" title="ElasticSearch源码解析与优化实践">' +
'<img src = "./img/elasticsearch.jpg" width = "200" height = "200" />' +
'</a>';
obox.style.position = "fixed";
obox.style.right = "20px";
obox.style.bottom = "100px";
var sbox = document.getElementsByTagName("body")[0];
sbox.appendChild(obox);
}
var obox = document.createElement("div")
obox.innerHTML = '<a href="https://u.jd.com/Uj4bve" target="_blank" title="ElasticSearch源码解析与优化实践">' +
'<img src = "./img/elasticsearch.jpg" width = "200" height = "200" />' +
'</a>';
obox.style.position = "fixed";
obox.style.right = "20px";
obox.style.bottom = "100px";
var sbox = document.getElementsByTagName("body")[0];
sbox.appendChild(obox);