test add link

This commit is contained in:
liujianhuan 2020-07-01 12:40:32 +08:00
parent a6f67fb4bd
commit 70299539d3
2 changed files with 12 additions and 0 deletions

BIN
img/elasticsearch.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

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