📄 javaeye技术网站.htm
字号:
名字最好不变16*16的16色,放虚拟目录根目录下</FONT>
<LI><FONT size=2><STRONG>收藏栏图标</STRONG> <BR><link rel="Bookmark"
href="favicon.ico"> </FONT>
<LI><FONT size=2><STRONG>查看源码</STRONG> <BR><input type=button value=查看网页源代码
onclick="window.location = 'view-source:'+ 'http://www.csdn.net/'">
</FONT>
<LI><FONT size=2><STRONG>关闭输入法</STRONG> <BR><input
style="ime-mode:disabled"> </FONT>
<LI><STRONG>自动全选</STRONG> <BR><input type=text name=text1 value="123"
onfocus="this.select()">
<LI><FONT size=2><STRONG>ENTER键可以让光标移到下一个输入框 <BR></STRONG><input
onkeydown="if(event.keyCode==13)event.keyCode=9"></FONT>
<LI><STRONG>文本框的默认值 <BR></STRONG><input type=text value="123"
onfocus="alert(this.defaultValue)">
<LI><STRONG>title换行 <BR></STRONG>obj.title =
"123&#13sdfs&#32"
<LI><FONT size=2><STRONG>获得时间所代表的微秒 <BR></STRONG>var n1 = new
Date("2004-10-10".replace(/-/g,
"\/")).getTime()</FONT>
<LI><FONT size=2><STRONG>窗口是否关闭 <BR></STRONG>win.closed
</FONT>
<LI><FONT size=2><STRONG>checkbox扁平 <BR></STRONG><input type=checkbox
style="position: absolute; clip:rect(5px 15px 15px
5px)"><br></FONT>
<LI><STRONG>获取选中内容
<BR></STRONG>document.selection.createRange().duplicate().text
<LI><STRONG>自动完成功能 <BR></STRONG><input
type=text
autocomplete=on>打开该功能 <BR><input
type=text
autocomplete=off>关闭该功能
<LI><FONT size=2><STRONG>窗口最大化</STRONG> <BR><body
onload="window.resizeTo(window.screen.width -
4,window.screen.height-50);window.moveTo(-4,-4)"></FONT>
<LI><FONT size=2><STRONG>无关闭按钮IE <BR></STRONG>window.open("aa.htm", "meizz",
"fullscreen=7"); </FONT>
<LI><STRONG>统一编码/解码
<BR></STRONG>alert(decodeURIComponent(encodeURIComponent("http://你好.com?as=
hehe"))) <BR>encodeURIComponent对":"、"/"、";" 和
"?"也编码
<LI><STRONG>表格行指示 <BR></STRONG><tr onmouseover="this.bgColor='#f0f0f0'"
onmouseout="this.bgColor='#ffffff'">
</LI></UL></DIV>//POST代替FORM<FONT size=2> </FONT>
<DIV><SCRIPT language=<SPAN style="COLOR: #ff00ff">"VBScript"</SPAN>>
<BR>Function URLEncoding(vstrIn) <BR> strReturn =
<SPAN style="COLOR: #ff00ff">""</SPAN> <BR> For i
= 1 To Len(vstrIn) <BR>
ThisChr = Mid(vStrIn,i,1)
<BR> If Abs(Asc(ThisChr))
< &HFF Then
<BR>
strReturn = strReturn & ThisChr
<BR> Else
<BR>
innerCode = Asc(ThisChr)
<BR>
If innerCode < 0 Then
<BR>
innerCode = innerCode + &H10000
<BR>
End If
<BR>
Hight8 = (innerCode And &HFF00)\ &HFF
<BR>
Low8 = innerCode And &HFF
<BR>
strReturn = strReturn & <SPAN style="COLOR: #ff00ff">"%"</SPAN> &
Hex(Hight8) & <SPAN style="COLOR: #ff00ff">"%"</SPAN> &
Hex(Low8) <BR> End If
<BR> Next <BR>
URLEncoding = strReturn <BR>End Function <BR>Function bytes2BSTR(vIn)
<BR> strReturn = <SPAN
style="COLOR: #ff00ff">""</SPAN> <BR> For i = 1 To
LenB(vIn) <BR>
ThisCharCode = AscB(MidB(vIn,i,1))
<BR> If ThisCharCode <
&H80 Then
<BR>
strReturn = strReturn & Chr(ThisCharCode)
<BR> Else
<BR>
NextCharCode = AscB(MidB(vIn,i+1,1))
<BR>
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 +
CInt(NextCharCode))
<BR>
i = i + 1 <BR> End If
<BR> Next <BR>
bytes2BSTR = strReturn <BR>End Function <BR>dim strA,oReq <BR>strA =
URLEncoding(<SPAN style="COLOR: #ff00ff">"submit1=Submit&text1=中文"</SPAN>)
<BR>set oReq = CreateObject(<SPAN
style="COLOR: #ff00ff">"MSXML2.XMLHTTP"</SPAN>) <BR>oReq.open <SPAN
style="COLOR: #ff00ff">"POST"</SPAN>,<SPAN style="COLOR: #ff00ff">"http:<SPAN
style="COLOR: #008000">//ServerName/VDir/TstResult.asp"</SPAN>,false
</SPAN><BR>oReq.setRequestHeader <SPAN
style="COLOR: #ff00ff">"Content-Length"</SPAN>,Len(strA)
<BR>oReq.setRequestHeader <SPAN
style="COLOR: #ff00ff">"CONTENT-TYPE"</SPAN>,<SPAN
style="COLOR: #ff00ff">"application/x-www-form-urlencoded"</SPAN> <BR>oReq.send
strA <BR>msgbox bytes2BSTR(oReq.responseBody) <BR></SCRIPT> </DIV>
<P>//readyState是xmlhttp返回数据的进度,0=载入中,1=未初始化,2=已载入,3=运行中,4=完成</P>
<DIV>(1)拖拽访问 <BR>event.dataTransfer.setData(<SPAN
style="COLOR: #ff00ff">"URL"</SPAN>, oImage.src); <BR>sImageURL =
event.dataTransfer.getData(<SPAN style="COLOR: #ff00ff">"URL"</SPAN>)
<BR>(2)普通访问 <BR>window.clipboardData.setData(<SPAN
style="COLOR: #ff00ff">"Text"</SPAN>,oSource.innerText);
<BR>window.clipboardData.getData(<SPAN style="COLOR: #ff00ff">"Text"</SPAN>);
</DIV>
<DIV><HTML> <BR><HEAD> <BR><META NAME=<SPAN
style="COLOR: #ff00ff">"save"</SPAN> CONTENT=<SPAN
style="COLOR: #ff00ff">"history"</SPAN>> <BR><STYLE>
<BR> .sHistory {behavior:url(#default#savehistory);}
<BR></STYLE> <BR></HEAD> <BR><BODY> <BR><INPUT
class=sHistory type=text id=oPersistInput> <BR></BODY>
<BR></HTML> </DIV>
<DIV><p style=<SPAN
style="COLOR: #ff00ff">"page-break-after:always"</SPAN>>page1</p> <BR><p
style=<SPAN
style="COLOR: #ff00ff">"page-break-after:always"</SPAN>>page2</p> </DIV>
<DIV><meta name=<SPAN style="COLOR: #ff00ff">"ROBOTS"</SPAN> content=<SPAN
style="COLOR: #ff00ff">"属性值"</SPAN>> <BR> 其中属性值有以下一些: <BR> 属性值为<SPAN
style="COLOR: #ff00ff">"all"</SPAN>: 文件将被检索,且页上链接可被查询; <BR> 属性值为<SPAN
style="COLOR: #ff00ff">"none"</SPAN>: 文件不被检索,而且不查询页上的链接; <BR> 属性值为<SPAN
style="COLOR: #ff00ff">"index"</SPAN>: 文件将被检索; <BR> 属性值为<SPAN
style="COLOR: #ff00ff">"follow"</SPAN>: 查询页上的链接; <BR> 属性值为<SPAN
style="COLOR: #ff00ff">"noindex"</SPAN>: 文件不检索,但可被查询链接; <BR> 属性值为<SPAN
style="COLOR: #ff00ff">"nofollow"</SPAN>: </DIV>
<DIV><object id=min classid=<SPAN
style="COLOR: #ff00ff">"clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11"</SPAN>> <BR><param
name=<SPAN style="COLOR: #ff00ff">"Command"</SPAN> value=<SPAN
style="COLOR: #ff00ff">"Minimize"</SPAN>></object> <BR><object
id=max classid=<SPAN
style="COLOR: #ff00ff">"clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11"</SPAN>> <BR><param
name=<SPAN style="COLOR: #ff00ff">"Command"</SPAN> value=<SPAN
style="COLOR: #ff00ff">"Maximize"</SPAN>></object> <BR><OBJECT
id=close classid=<SPAN
style="COLOR: #ff00ff">"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"</SPAN>> <BR><PARAM
NAME=<SPAN style="COLOR: #ff00ff">"Command"</SPAN> value=<SPAN
style="COLOR: #ff00ff">"Close"</SPAN>></OBJECT> <BR><input
type=button value=最小化 onclick=min.Click()> <BR><input
type=button value=最大化 onclick=max.Click()> <BR><input
type=button value=关闭 onclick=close.Click()> </DIV>
<DIV><META HTTP-EQUIV=<SPAN style="COLOR: #ff00ff">"pragma"</SPAN>
CONTENT=<SPAN style="COLOR: #ff00ff">"no-cache"</SPAN>> <BR><META
HTTP-EQUIV=<SPAN style="COLOR: #ff00ff">"Cache-Control"</SPAN> CONTENT=<SPAN
style="COLOR: #ff00ff">"no-cache, must-revalidate"</SPAN>> <BR><META
HTTP-EQUIV=<SPAN style="COLOR: #ff00ff">"expires"</SPAN> CONTENT=<SPAN
style="COLOR: #ff00ff">"0"</SPAN>> </DIV>
<DIV><input type=button value=导入收藏夹 onclick=<SPAN
style="COLOR: #ff00ff">"window.external.ImportExportFavorites(true,'http:<SPAN
style="COLOR: #008000">//localhost');"</SPAN>> </SPAN><BR><input
type=button value=导出收藏夹 onclick=<SPAN
style="COLOR: #ff00ff">"window.external.ImportExportFavorites(false,'http:<SPAN
style="COLOR: #008000">//localhost');"</SPAN>> </SPAN><BR><input
type=button value=整理收藏夹 onclick=<SPAN
style="COLOR: #ff00ff">"window.external.ShowBrowserUI('OrganizeFavorites',
null)"</SPAN>> <BR><input type=button value=语言设置
onclick=<SPAN
style="COLOR: #ff00ff">"window.external.ShowBrowserUI('LanguageDialog',
null)"</SPAN>> <BR><input type=button value=加入收藏夹 onclick=<SPAN
style="COLOR: #ff00ff">"window.external.AddFavorite('http:<SPAN
style="COLOR: #008000">//www.google.com/', 'google')"</SPAN>>
</SPAN><BR><input type=button value=加入到频道 onclick=<SPAN
style="COLOR: #ff00ff">"window.external.addChannel('http:<SPAN
style="COLOR: #008000">//www.google.com/')"</SPAN>> </SPAN><BR><input
type=button value=加入到频道 onclick=<SPAN
style="COLOR: #ff00ff">"window.external.showBrowserUI('PrivacySettings',null)"</SPAN>>
</DIV>
<DIV><input type=text onkeypress=<SPAN style="COLOR: #ff00ff">"return
event.keyCode>=48&&event.keyCode<=57||(this.value.indexOf('.')<0?event.keyCode==46:false)"</SPAN>
onpaste=<SPAN style="COLOR: #ff00ff">"return
!clipboardData.getData('text').match(/\D/)"</SPAN> ondragenter=<SPAN
style="COLOR: #ff00ff">"return false"</SPAN>> </DIV>
<P>language=<SPAN style="COLOR: #ff00ff">"javascript"</SPAN>> <BR><SPAN
style="COLOR: #0000ff">function</SPAN> jStartExcel() { <BR><SPAN
style="COLOR: #0000ff">var</SPAN> xls = <SPAN style="COLOR: #0000ff">new</SPAN>
<SPAN style="COLOR: #ff0000">ActiveXObject</SPAN> ( <SPAN
style="COLOR: #ff00ff">"Excel.Application"</SPAN> ); <BR>xls.visible = <SPAN
style="COLOR: #0000ff">true</SPAN>; <BR><SPAN style="COLOR: #0000ff">var</SPAN>
newBook = xls.Workbooks.Add; <BR>newBook.Worksheets.Add;
<BR>newBook.Worksheets(1).Activate;
<BR>xls.ActiveWorkBook.ActiveSheet.PageSetup.Orientation = 2;
<BR>xls.ActiveWorkBook.ActiveSheet.PageSetup.PaperSize = 5;
<BR>newBook.Worksheets(1).Columns(<SPAN
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -