x__tagger.js

来自「在网页上对图片及文字打标记,并提示的功能,以及注入脚本绝不干涉网页原有脚本的特色」· JavaScript 代码 · 共 22 行

JS
22
字号
function x__window_onload() {
	
	//include stylesheet
	var link = document.createElement("LINK");
	link.rel = "stylesheet";
	link.type = "text/css";
	link.href = "css/x__tagger.css";
	link.charset = "utf-8";
	document.body.appendChild(link);
	
	//create a iframe tag into body, and funtion run in the iframe. this can be avoid function conflict with exists function in the original page
	var iframe = document.createElement("IFRAME");
	iframe.src = "js/x__tagger_inner.html";
	iframe.style.display = "none";
	document.body.appendChild(iframe);
}

if (window.addEventListener) {
	window.addEventListener("load", x__window_onload, false);
} else if (window.attachEvent) {
	window.attachEvent("onload", x__window_onload);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?