Copie el siguiente código, es mejor usar herramientas de edición profesionales como EditPlus.
El código es el siguiente:
<! DocType html public "-// w3c // dtd xhtml 1.0 Transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transicional.dtd ">
<html xmlns = "http://www.w3.org/1999/xhtml">
<Evista>
<meta http-equiv = "content-type" content = "text /html; charset = utf-8" />
<title> Page Content Capturer </title>
<estilo>
* {font-size: 12px; }
html {relleno: 0px; margen: 0px; estilo fronterizo: ninguno; ancho fronterizo: 0px; desbordamiento: auto; Color de fondo: Buttonface; }
cuerpo {relleno: 0px; margen: 0px; estilo fronterizo: ninguno; ancho fronterizo: 0px; Color de fondo: Buttonface; }
li {Line-Hieight: 24px; Altura: 24px; margen: 10px 0px -10px 15px; }
A {color: azul; }
entrada {border-width: 1px; }
#Output {ancho: 90%; Altura: 150px; desbordamiento: auto; }
</style>
<script>
var ganan;
función $ (s) {return document.getElementById (s); }
window.onload = function () {
var myHeight = 320;
Window.moveto (0,0);
Window.resizeto (Screen.availwidth, myHeight);
// Abrir un navegador
win = new ActiveXObject ("Internetexplorer.application");
win.left = 0; win.top = myHeight;
win.width = screen.availwidth; win.height = screen.availheight - myHeight;
win.navigate2 ("Acerca de: en blanco");
win.visible = true;
setInterval (function () {try {win.document;} catch (e) {window.close ();}}, 1); // El programa saldrá automáticamente después de que se cierre la ventana
// Cierre el navegador cuando la página esté desinstalada
Window.OnUnload = function () {win.quit (); }
// Captura automática
setInterval (docapture, 1);
}
function docapture () {
intentar{
win.document.OnClick = Capit;
} catch (e) {}
}
function Capit () {
var d = win.document, w = d.Parentwindow, e = w.event, el = e.srcelement;
$ ("CurrentObj"). Bound = El;
$ ("CurrentObj"). Innerhtml = El.tagname;
showcapture (El);
E.CancelBubble = True;
e.returnValue = false;
devolver falso;
}
función showcapture (el) {
if (! el) regreso;
var OldBorderStyle = El.Style.BorderStyle, OldBorderWidth = El.Style.BorderWidth, OldBorderColor = El.Style.BorderColor;
el.style.border = "2px sólido rojo";
setTimeout (function () {try {el.style.borderstyle = OldBorderStyle; El.Style.BorderWidth = OldBorderWidth; El.Style.BorderColor = OldBorderColor;} Catch (E) {}}, 300);