Copie o código a seguir, é melhor usar ferramentas de edição profissional, como o EditPlus.
O código é o seguinte:
<! Doctype html public "-// w3c // dtd xhtml 1.0 transitional // pt" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-bransitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv = "content-type" content = "text /html; charset = utf-8" />
<title> Página Capturente de conteúdo </ititure>
<estilo>
* {font-size: 12px; }
html {preenchimento: 0px; margem: 0px; estilo de fronteira: nenhum; largura de fronteira: 0px; Overflow: Auto; Background-Color: Buttonface; }
corpo {preenchimento: 0px; margem: 0px; estilo de fronteira: nenhum; largura de fronteira: 0px; Background-Color: Buttonface; }
li {altura da linha: 24px; Altura: 24px; margem: 10px 0px -10px 15px; }
a {cor: azul; }
entrada {largura de borda: 1px; }
#Output {Width: 90%; Altura: 150px; Overflow: Auto; }
</style>
<Cript>
vin win;
função $ (s) {retornar document.getElementById (s); }
window.onload = function () {
var myHeight = 320;
window.moveto (0,0);
window.resizeto (screen.availwidth, myHeight);
// Abra um navegador
win = new ActiveXObject ("Intertexplorer.Application");
win.left = 0; win.top = myHeight;
win.width = screen.availwidth; win.Height = screen.availHeight - MyHeight;
win.navigate2 ("Sobre: Blank");
win.visible = true;
setInterval (function () {try {win.document;} catch (e) {window.close ();}}, 1); // O programa será excitado automaticamente depois que a janela estiver fechada
// Fechar o navegador quando a página estiver desinstalada
window.onunload = function () {win.quit (); }
// Captura automática
setInterval (docapture, 1);
}
function docapture () {
tentar{
win.document.OnClick = Capit;
} catch (e) {}
}
função capit () {
var d = win.document, w = d.parentwindow, e = w.Event, el = e.srcelement;
$ ("currentObj"). Bound = el;
$ ("currentObj"). Innerhtml = el.TagName;
apresentando (El);
e.cancelbubble = true;
e.returnValue = false;
retornar falso;
}
Função ShowCapture (EL) {
se (! el) retornar;
var OldBordersTyle = el.style.borderstyle, Oldborderwidth = el.style.borderwidth, OldBorderColor = el.style.bordercolor;
el.style.border = "2px vermelho sólido";
setTimeout (function () {try {el.style.borderstyle = OldBordersTyle; el.style.borderwidth = Oldborderwidth; el.style.bordercolor = OldborderColor;} catch (e) {}}, 300);