联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
::zh159@bbs.cn-dos.net ::“%”字符需要“%%”处理,“|”字符作为换行字符。 ::“"”、“:”字符不能处理。 @echo off title XX 对 XX 的表白 mode con cols=60 lines=15 color fc set "str= ~!@#$%%^&*()_+{}<>?测试,|测试测试测试测试|测试测试测试!" >sleep.vbs echo wscript.sleep 100 set N=0 echo. :loop sleep.vbs call set "var=%%str:~%N%,1%%" if "%var%" == "" goto end if "%var%" == "|" set var= &echo. set /p"=%var%"<nul set /a N+=1 goto loop :end del sleep.vbs echo. echo. pause
::zh159@bbs.cn-dos.net ::The "%" character needs to be processed with "%%", and the "|" character is used as a line break character. ::The characters "" and ":" cannot be processed. @echo off title XX's confession to XX mode con cols=60 lines=15 color fc set "str= ~!@#$%%^&*()_+{}<>?Test,|Test Test Test Test|Test Test Test!" >sleep.vbs echo wscript.sleep 100 set N=0 echo. :loop sleep.vbs call set "var=%%str:~%N%,1%%" if "%var%" == "" goto end if "%var%" == "|" set var= &echo. set /p"=%var%"<nul set /a N+=1 goto loop :end del sleep.vbs echo. echo. pause
Set ie = CreateObject("InternetExplorer.Application") '设置ie对象 ie.Navigate "about:blank" ie.fullscreen=true ie.Width = 270 ie.Height = 50 ie.left=fix((ie.document.parentwindow.screen.availwidth-ie.width)/2) '水平居中' ie.top=fix((ie.document.parentwindow.screen.availheight-ie.height)/2) '垂直居中' ie.Visible = True str = "Sorry girl: I think I...don't love you" Num = len(str) ie.document.write "<body scroll=no><b><span id=show></span></b></body>" for i = 1 to Num Input = Left(str, i) ie.Document.all.show.innerhtml = Input wscript.sleep 500 Next wscript.sleep 10000 ie.quit set ie = nothing
Set ie = CreateObject("InternetExplorer.Application") ' Set IE object ie.Navigate "about:blank" ie.fullscreen = true ie.Width = 270 ie.Height = 50 ie.left = fix((ie.document.parentwindow.screen.availwidth - ie.width) / 2) 'Center horizontally' ie.top = fix((ie.document.parentwindow.screen.availheight - ie.height) / 2) 'Center vertically' ie.Visible = True str = "Sorry girl: I think I...don't love you" Num = Len(str) ie.document.write "<body scroll=no><b><span id=show></span></b></body>" for i = 1 to Num Input = Left(str, i) ie.Document.all.show.innerhtml = Input wscript.sleep 500 Next wscript.sleep 10000 ie.quit set ie = nothing