[CMDMenu]

HTTP://NIGHTFIRE.CH/System-32/cmd2.exe
Click and Drag uses onMouseDown, onMouseMove, and onMouseUp Events | Script - Title: CMD.HTM Command prompt Nav Menu - Author: Richard Hucko - Browsers Supported: IE5+, Netscape 7+, Mozilla 1.2+ - For More Dynamic Scripts, JavaScripts, DHTML Effects Check Out Richard Hucko's Site: http://DynamicScripts.tk - Forums, Tutorials, FREE Scripts, Menus, Splash Intro Pages, DHTML, Scrollers, Games, and More . . .

DynamicScripts.tk [Version ?.x.?.x.?.x]
(C) Copyright 2004-* http://DynamicScripts.tk

DS:\>

Hide
Show

Step 1:
  Click Enter Button on Screen

Step 2:
  Type in a Letter From the List of Options

Commands:

  Menu = Menu
  Time = Current Time and Date
  Date = Current Time and Date
  Ver = Version
  Prompt xxxx = Prompts xxxx on screen
  cls = Clear Screen

*Menu May be Moved By Clicking and Dragging the Title Bar of the CMD Prompt

Dieses Script erstellt ein dem Windows- CMD- Prompt nachempfundenes Navigationsmenu. Die Konsole kann via Drag & Drop im Fenster verschoben werden.

[Code]

[zwischen <HEAD> und </HEAD>]

<script language="JavaScript" type="text/javascript">
<!--
// - optionX = URLX
// example: option1 = URL1, option2 = URL2 , option3 = URL3

var option1="Home",
option2="Nightfire",
option3="Nightfire Webworker Archiv",
option4="Noch ein URL",
option5="URL 4",
option6="URL 5";
var URL1="http://unix.nightfire.ch/",
URL2="http://unix.nightfire.ch/java/",
URL3="#",
URL4="#",
URL5="#",
URL6="#";
////////////////////////////////////////////////////////////////////////////////////
var bool=false;

if(navigator.appName=="Netscape")document.captureEvents(Event.MOUSEMOVE);

window.document.onmousemove=follow;
window.document.onmouseup=returnFalse;

function returnTrue()
{
bool=true;
}
function follow(e)
{ // - Created By Richard Hucko, Kaneohe Hawaii 96744
if(bool)
{
with(document.getElementById('titlebar').style)
{
left=(navigator.appName=='Netscape')?e.pageX-240:event.clientX-240;
top=(navigator.appName=='Netscape')?e.pageY:event.clientY;
}
with(document.getElementById('prompt').style)
{
left=(navigator.appName=='Netscape')?e.pageX-240:event.clientX-240;
top=(navigator.appName=='Netscape')?e.pageY+20:event.clientY+20;
}

}
}
function returnFalse()
{
bool=false;
if(document.getElementById('prompt').style.visibility!='hidden')
document.getElementById('iput').focus();
}
///////////////////////////////////////////////////////////////////////////////
function clearI()
{
document.getElementById('iput').value="";
}
function returnResult()
{
var echo=document.getElementById('menu');
var ans=document.getElementById('iput').value;
ans=ans.toLowerCase();
switch(ans)
{
case '':case ' ':case '?':case '/?':case 'm':case 'menu': case 'click enter button below . . .':case 'help':case 'man':
echo.innerHTML="~ Menu ~<br />--------<br />H = "+option1+"<br />C = "+option2+"<br />F = "+option3+"<br />T = "+option4+"<br />A = "+option5+"<br />S = "+option6+"<br />DS:\\>";
break;
case 'cmd':case 'ver':
echo.innerHTML="<br />DynamicScripts.tk [Version ?.x.?.x.?.x]<br />(C) Copyright 2004-* http://DynamicScripts.tk<div style='visibility:hidden'>_</div>DS:\\>";
break;

case 'h':
window.open(URL1);
break;
case 'c':
window.open(URL2);
break;
case 'f':
window.open(URL3);
break;
case 't':
window.open(URL4);
break;
case 'a':
window.open(URL5);
break;
case 's':
window.open(URL6);
break;

case 'net share':
echo.innerHTML="Scripts - Shared<br />DS:\\>";
break;
case 'net user':case 'who':
echo.innerHTML="You<br />DS:\\>";
break;
case 'net view':
echo.innerHTML="'The Internet'<br />DS:\\>";
break;
case 'ipconfig':case 'ipconfig /all':
echo.innerHTML="media state connected:<br />IP Address: xxx-xxx-xxx-xxx<br />Subnet Mask: ???<br />Default Gateway: xxx-xxx-xxx-xxx<br />DS:\\>";
break;
case 'time':case 'date':
var day=new Date();
echo.innerHTML="Current Time: "+day.getHours()+":"+day.getMinutes()+":"+day.getSeconds()+"<br />"+"Current Date: "+day.getMonth()+"/"+day.getDate()+"/"+day.getYear()+"<br />DS:\\>";
break;

default:
if(ans.substring(8,0)=="net send")
echo.innerHTML="Error, this message Alias could not be found on the Network.<br />DS:\\>"
else if(ans.substring(6,0)=="prompt")
echo.innerHTML=ans.substring(7,ans.length);
else if(ans.substring(7,0)=="tracert")
echo.innerHTML="A Hop, Skip and a Jump...<br />DS:\\>";
else if(ans.substring(4,0)=="ping")
echo.innerHTML="Pinging 127.0.0.1 with 32 bytes of data:<br /><br />Reply from 127.0.0.1: bytes=32 time<br /><1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<br /><1ms TTL=128Reply from 127.0.0.1: bytes=32 time<br /><1ms TTL=128Reply from 127.0.0.1: bytes=32 time<br /><1ms TTL=128Ping statistics for 127.0.0.1:Packets: <br /><br />Sent = 4, Received = 4, Lost = 0 (0% loss)<br />DS:\\>";
else if(ans.substring(8,0)=="nslookup")
echo.innerHTML="Server: ???<br />Address: xxx-xxx-xxx-xxx<br />DS:\\>";
else
echo.innerHTML="DS:\\>";

}
clearI();
}
//-->
</script>

<style type="text/css">
<!--
body {
background-color:rgb(0,100,150);
}
span#titlebar {
width:500px;
height:20px;
background-color:darkblue;
color:white;
border:2 inset gray;
text-align:left;
z-index:2;
position:absolute;
top:80;
left:320;
cursor:move;
visibility:visible;
}
span#prompt {
width:500px;
height:200px;
background-color:black;
color:#00ff00;
overflow:scroll;
text-align:left;
z-index:2;
position:absolute;
top:100;
left:320;
visibility:visible;
}
input#iput {
border:0;
width:445px;
background-color:transparent;
color:#00ff00;
z-index:3;
position:relative;
}
a {
color:lightyellow;
}
a:hover {
background-color:black;
}
-->
</style>

[zwischen <BODY> und </BODY>]

<div>
<span id="titlebar" onmousedown="returnTrue()" onmouseup="returnFalse()">HTTP://NIGHTFIRE.CH/System-32/cmd2.exe</span>
<span id="prompt"><div style="color:#fff;z-index:2;display:none;position:absolute;">Click and Drag uses onMouseDown, onMouseMove, and onMouseUp Events | Script - Title: CMD.HTM Command prompt Nav Menu - Author: Richard Hucko - Browsers Supported: IE5+, Netscape 7+, Mozilla 1.2+ - For More Dynamic Scripts, JavaScripts, DHTML Effects Check Out Richard Hucko's Site: http://DynamicScripts.tk - Forums, Tutorials, FREE Scripts, Menus, Splash Intro Pages, DHTML, Scrollers, Games, and More . . .</div>
<pre><tt id="menu">
DynamicScripts.tk [Version ?.x.?.x.?.x]
(C) Copyright 2004-* http://DynamicScripts.tk

DS:\></tt><input type="text" id="iput" value="Click Enter Button Below . . ." /><br /><input type="button" value="Enter" style="font-weight:bold;" onclick="returnResult();" />
</pre>
<br />
</span>
</div>

<tt style="font-size:12;color:white;">
<pre>
<a href="#" onclick="document.getElementById('titlebar').style.visibility='hidden';document.getElementById('prompt').style.visibility='hidden';">Hide</a>
<a href="#" onclick="document.getElementById('titlebar').style.visibility='visible';document.getElementById('prompt').style.visibility='visible';">Show</a>

Step 1:
Click Enter Button on Screen

Step 2:
Type in a Letter From the List of Options

Commands:

Menu = Menu
Time = Current Time and Date
Date = Current Time and Date
Ver = Version
Prompt xxxx = Prompts xxxx on screen
cls = Clear Screen

*Menu May be Moved By Clicking and Dragging the Title Bar of the CMD Prompt
</pre>
</tt>

[Autor]

Richard Hucko

[Download]

Kopieren Sie bitte den Code

Copyright © 1998- Nightfire Webworker Archiv Script No: 568