Quellcode
<html>
<Kopf>
<title>Südlich des Sommers</title>
<Skript>
Var-Timer;
var win = window.createPopup();
var cmdIndex = 0;
var closeMe = 0;
var currentCmdWindow;
Funktion CurrentCmdFocus(obj)
{
currentCmdWindow = obj;
obj.rows(0).cells(0).style.filter = "progid:DXImageTransform.Microsoft.gradient(startColorStr=#0054E3,endColorStr=#358DFB,GradientType=1)";
obj.style.zIndex = cmdIndex++;
}
Funktion CurrentCmdBlur(obj)
{
var line = obj.getElementsByTagName("P")[obj.getElementsByTagName("P").length - 1];
line.innerText = line.innerText.replace(/_$/, "");
obj.rows(0).cells(0).style.filter = "progid:DXImageTransform.Microsoft.gradient(startColorStr=#6B79B8,endColorStr=#8C9ADB,GradientType=1)";
}
Funktion CloseButtonClick(src)
{
var msg1 = " SCHLIESSEN?nn" +
„Systemaufforderung: Eigentlich ist dies nur ein gewöhnlicher Fork, nicht zum Schließen~~ @o@nn“ +
"C:\WINDOWS\system32>";
var absätze = src.parentNode.parentNode.parentNode.getElementsByTagName("P");
absätze[absätze.länge - 1].innerText = absätze[absätze.länge - 1].innerText.replace(/_$/, "") + msg1;
}
Funktion MaximizeButtonClick(src)
{
var msg1 = "MAXIMIEREN?nn" +
„Falsch#o#nn“ +
"C:\WINDOWS\system32>";
var absätze = src.parentNode.parentNode.parentNode.getElementsByTagName("P");
absätze[absätze.länge - 1].innerText = absätze[absätze.länge - 1].innerText.replace(/_$/, "") + msg1;
CreateCmdWindow(win.document.getElementById("Frame"),
GetRandomNum(win.document.body.clientWidth - 400),
GetRandomNum(win.document.body.clientHeight - 300));
}
Funktion MinimizeButtonClick(src)
{
if (closeMe < 9)
{
var msg1 = " MINIMIEREN?nn" +
„Klicken Sie noch ein paar Mal^-^nn“ +
"C:\WINDOWS\system32>";
var absätze = src.parentNode.parentNode.parentNode.getElementsByTagName("P");
absätze[absätze.länge - 1].innerText = absätze[absätze.länge - 1].innerText.replace(/_$/, "") + msg1;
closeMe++;
}
anders
{
clearTimeout(timer);
win.hide();
window.document.body.style.display = "";
window.document.body.innerHTML = "<div style="font:32pt;font-weight:bold;color:#BE5100;"><p></p><p></p></div >";
setTimeout("Welcome(0)", 400);
}
}
Funktion Welcome(n)
{
var msg1 = „Willkommen im Blog von 0009 ^_^“;
var msg2 = " <a href=" http://0009.cnblogs.com">Klicken Sie hier</a>";
if(n < msg1.length)
{
window.document.getElementsByTagName("P")[0].innerText += msg1.substr(n, 1);
n++;
setTimeout("Welcome(" + n + ")", 200);
}
anders
{
window.document.getElementsByTagName("P")[1].innerHTML = msg2;
}
}
Funktion OpenCmdWindow(height)
{
if (height < window.screen.availHeight)
{
Höhe += 50;
if (height >= window.screen.availHeight)
{
height = window.screen.availHeight;
win.show(0, 0, window.screen.availWidth, window.screen.availHeight);
CreateCmdWindow(win.document.getElementById("Frame"), 10, 10);
Wink(true);
}
anders
{
win.show(0, 0, window.screen.availWidth, height);
}
}
sonst wenn (!win.isOpen)
{
win.show(0, 0, window.screen.availWidth, window.screen.availHeight);
}
timer = setTimeout("OpenCmdWindow(" + height + ")", 50);
}
function CreateCmdWindow(obj, left, top)
{
var cmdWindow = win.document.createElement("TABLE");
cmdWindow.border = 1;
cmdWindow.className = "Cmd";
cmdWindow.style.left = left;
cmdWindow.style.top = top;
cmdWindow.style.zIndex = cmdIndex++;
var newRow = cmdWindow.insertRow();
var newCell = newRow.insertCell();
newCell.className = "Titel";
newCell.innerHTML = "<span> C:\WINDOWS\system32\cmd.exe</span>" +
"<button onclick="window.parent.CloseButtonClick(this);">×</button>" +
"<button onclick="window.parent.MaximizeButtonClick(this);">□</button>" +
"<button onclick="window.parent.MinimizeButtonClick(this);">-</button>";
newRow = cmdWindow.insertRow();
newCell = newRow.insertCell();
newCell.innerHTML = "<div class="Content">" +
„<p>Microsoft Windows XP [Version 5.1.2600]</p>“ +
„<p>(C) Copyright 1985-2001 Microsoft Corp.</p>“ +
„<p> </p>“ +
"<p>C:\WINDOWS\system32></p>" +
"<div class="Adorn"></div>" +
"</div>";
cmdWindow.onactivate = function (){ window.parent.CurrentCmdFocus(this);
cmdWindow.ondeactivate = function (){ window.parent.CurrentCmdBlur(this);
obj.appendChild(cmdWindow);
}
Funktion Wink(show)
{
if(currentCmdWindow != undefiniert && currentCmdWindow != null)
{
var line = currentCmdWindow.getElementsByTagName("P")[currentCmdWindow.getElementsByTagName("P").length - 1];
wenn(zeigen)
{
line.innerText += "_";
}
anders
{
line.innerText = line.innerText.replace(/_$/, "");
}
}
setTimeout("Wink(" + !show + ")", 500);
}
Funktion GetRandomNum(max)
{
return parseInt(Math.random() * max + 1);
}
window.onload = function()
{
win.document.body.innerHTML = "<div id="Frame" onselectstart="return false;"></div>";
win.document.appendChild(win.document.createElement("STYLE"));
win.document.styleSheets[0].addRule("body", "padding: 0px; margin: 0px;");
win.document.styleSheets[0].addRule("#Frame", "width: 100 %; height: 100 %; Hintergrund: #3A6EA5;");
win.document.styleSheets[0].addRule(".Cmd", "Hintergrund: #fff; Position: absolut; Breite: 670px; Höhe: 440px; Schriftgröße: 10pt; Farbe: #fff; Cursor: Standard;" );
win.document.styleSheets[0].addRule(".Title", "filter: progid:DXImageTransform.Microsoft.gradient(startColorStr=#6B79B8,endColorStr=#8C9ADB,GradientType=1); Höhe: 24px; Schriftgröße: deutlich;");
win.document.styleSheets[0].addRule(".Title span", "float: left; line-height: 20px;");
win.document.styleSheets[0].addRule(".Titelschaltfläche", "Breite: 18px; Höhe: 18px; Float: rechts; Schriftart: 9pt; Schriftstärke: fett; Textalgin: Mitte; Rand: 2px 1px 0px 0px; Grenze: Anfang 2px #fff;");
win.document.styleSheets[0].addRule(".Content", "background: #000; height: 100%; overflow-y: scroll; scrollbar-face-color: #ece9d8; scrollbar-highlight-color: #ffffff ; scrollbar-shadow-color: #ccc; scrollbar-track-color: #eeeee;
win.document.styleSheets[0].addRule(".Content p", "margin: 0px; line-height: 16px;");
win.document.styleSheets[0].addRule(".Content .Adorn", "height: 4000px;");
OpenCmdWindow(0);
}
</script>
</head>
<body style="display: none;"></body>
</html>