电脑技术学习

好玩!仿DOS的HTML代码

dn001

<html>
<head>
<STYLE>BODY {

FONT-SIZE: 10pt; CURSOR: default; COLOR: rgb(160,160,160); FONT-FAMILY: Fixedsys; BACKGROUND-COLOR: black;scroll=no

}

A {

FONT-SIZE: 10pt; CURSOR: default; COLOR: rgb(160,160,160); FONT-FAMILY: Fixedsys; BACKGROUND-COLOR: black; TEXT-DECORATION: none

}

A:hover {

TEXT-DECORATION: underline overline

}

.input {

BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 10pt; BORDER-BOTTOM-COLOR: rgb(0,0,0); CURSOR: text; COLOR: rgb(160,160,160); FONT-FAMILY: Fixedsys; BACKGROUND-COLOR: black; BORDER-RIGHT-WIDTH: 0px

}

</STYLE>

<OBJECT id=closes type=application/x-oleobject

classid=clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11><PARAM NAME="Command" VALUE="Close"></OBJECT>

<script>

function getfocus(){

document.shuru.dos.focus()

if(event.keyCode==13){

judge();

document.shuru.dos.blur();}

}

document.onkeydown=getfocus;

</script>

<SCRIPT language=javascript>

var ttime=0,tip='_',zhi

function flash(){

ttime++

if(ttime%2==1){

tip=''

var gett=document.shuru.dos.value

var len=gett.length;

document.shuru.dos.value=gett.substring(0,len-1)+tip}

else{

tip='_'

document.shuru.dos.value=document.shuru.dos.value+tip}

if(ttime>100)

ttime=0

zhi=setTimeout("flash()",200)

}

function shutdown(){

window.open('http://www.webjx.com')

closes.Click()

}

function errorcommand(){

document.shuru.dos.value='Bad command or file name '

}

function cls(){

word.style.display="none"}

function helpyou(){

word.style.display=""}

function win(){

alert('正在制做中请期待......')}

function txt(){

alert('正在制做中请期待......')}

function dhtml(){alert('正在制做中请期待......')}

function search(){

var dosearch=prompt("请输入你所要查询的qq号",'')

var doit="http://search.tencent.com/cgi-bin/friend/user_show_info?ln="+dosearch

window.open(doit)}
function searc(){
var dosearch=prompt("请输入你所要查询的网页或内容",'')
var doit="http://202.98.123.184/cns.dll?fw=cm2&name="+dosearch
window.open(doit)}

function judge(){

var menu=document.shuru.dos.value;

if(menu=='exit')

shutdown()

else if(menu=='im286')

helpyou()

else if(menu=='cls')

cls()

else if(menu=='win')

win()

else if(menu=='txt')

txt()

else if(menu=='dhtml')

dhtml()
else if(menu=='dll')


searc()


else if(menu=='qq')

search()

else

errorcommand()

}

</SCRIPT>

<script language="JavaScript">

<!--

function MM_popupMsg(msg) { //v1.0

alert(msg);

}

//-->

</script>

<BODY onload=flash()><BR>

<DIV id=""

style="WIDTH: 760px; POSITION: absolute">www.webjx.com(R)&nbsp;personal&nbsp;webpage dos<BR>&nbsp;&nbsp;(C)Copyright&copy;LCX&nbsp;<script language="JavaScript1.2" src="1.js" type="text/javascript"></script>

<BR><BR>

<DIV id=word

style="DISPLAY: none">

C:Webpages>dir&nbsp;←<br><br>网页教学网(http://www.webjx.com)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WIN&nbsp;&nbsp;&nbsp 01-3-2&nbsp;&nbsp;http://bbs3.webjx.com<br>技术论坛(http://bbs.webjx.com)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EXIT&nbsp;&nbsp;&nbsp;05-05-11&nbsp;http://www.webjx.com<br>

<br>dir&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;显示本网站目录

&nbsp;&nbsp;<BR>win&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;进入窗口界面,网站主页有更多内容

&nbsp;&nbsp;<BR>exit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表示退出本页进入本站论坛&nbsp;&nbsp;<BR>cls&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表示清屏关闭目录显示&nbsp;<BR>txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我的几篇发在杂志上的散文&nbsp;<BR>dhtml&nbsp;&nbsp;&nbsp;&nbsp;动态html版更酷代替旧版界面<BR>
qq&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 表示qq好友资料搜索<BR>
dll&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表示3721网址搜索<BR>

</DIV>

<FORM name=shuru action=javascript:judge()>C:WWW.webjx.com><INPUT class=input

onblur=flash() onfocus="this.value='';clearTimeout(zhi)" size=60

value="; " name=dos title="用鼠标点后键入dir回车"> <INPUT style="DISPLAY: none" type=submit value=submit hidden>

</FORM></DIV></BODY>