Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaScript»ñÈ¡¼ÆËã»úMACµÈÓ²¼þÐÅÏ¢

£¨1£©ÏÂÔØClientInfo.dll£¨ÔÚÎÒµÄ×ÊÔ´ÖпÉÒÔÏÂÔØhttp://download.csdn.net/source/2141582£©
£¨2£©Ê¹ÓÃnew ActiveXObject("ClientInfo.HostInfo")µ÷ÓÃActiveX¿â
£¨3£©GetAdapterMac(0)»ñÈ¡Íø¿¨MACµØÖ·
ʹÓÃʾÀý£º
<HTML>
<TITLE>ClientInfoX JavaScript Sample</TITLE>
<HEAD>
<script language="JavaScript">
//////////////////////////////////////////////////
//º¯ÊýÓë·½·¨
//////////////////////////////////////////////////
function AddInfo(sInf)
{
  xo=new ActiveXObject("ClientInfo.HostInfo")
  document.getElementById("mbox").value = "\r" +sInf +document.getElementById("mbox").value;
}
function GetWindowsVersion()
{
  xo=new ActiveXObject("ClientInfo.HostInfo")
  AddInfo("GetWindowsVersion: "+xo.GetWindowsVersion());
  //getusername();
}
function GetCPU_ID()
{
  xo=new ActiveXObject("ClientInfo.HostInfo")
  AddInfo("GetCPU_ID: "+xo.GetCPU_ID());
}
function GetAdapterMac()
{
  xo=new ActiveXObject("ClientInfo.HostInfo")
  AddInfo("GetNET_ID: "+xo.GetAdapterMac(0));
}
function GetIdeSerialNumber()
{
  xo=new ActiveXObject("ClientInfo.HostInfo")
  AddInfo("GetIdeSerialNumber: "+xo.GetIdeSerialNumber());
}
function ClearmBox()
{
  document.getElementById("mbox").value = "";
}
</script>
 
</HEAD>
<BODY><center>
    <FORM ACTION="#" NAME="forms"><table width="100%" border="1" cellpadding="0" cellspacing="0" onload height="330">
      <tr>
        <td width="9%" height="30"><center><h3>ClientInfoX.dll ʵÀý </h3></center></td>
      </tr>
      <tr>
        <td width="9%" height="30"><center>
          <p>ÏûÏ¢´°¿Ú<br>
   &n


Ïà¹ØÎĵµ£º

¼òµ¥µÄJavascript Cookie²Ù×÷

<mce:script type="text/javascript"><!--

function SetCookie(name,value,expire) {
var exp = new Date();
exp.setTime(exp.getTime() + expire);
document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
} ......

ÓÃAcrobat JavaScript¹Ø±ÕPDF

function openCheck()
{
if (!this.external)
{
app.alert("Acrobat¤Ç¤Ï実ÐФǤ­¤Þ¤»¤ó");
this.closeDoc(true);
// var myDoc = event.target;
// myDoc.closeDoc(true);
}
}
openCheck();
 
ÐèҪעÒâµÄÊÇ:
1. ÉÏÊöµÄsourceÖ»ÄÜÔÚPDF ÓÃAcrobat Reader´ò¿ªÊ±²ÅÆð×÷ÓÃ,
ÈçÓÃIEµÈ´ò¿ªÊ±»á±¨¡¸NotSu ......

ÐÞ¸´µ¯³öJavaScript¶Ô»°¿òÊ±Ò³Ãæ±³¾°±ä°×µÄÎÊÌâ

from http://niunan.javaeye.com/blog/248256
Page.ClientScript.RegisterStartupScript(Page.GetType(),"message", "<mce:script language='javascript' defer>alert('ÑéÖ¤ÂëÊäÈë´íÎó£¡');</mce:script>"); ......

javascriptµÄϵͳº¯Êý

javascriptµÄϵͳº¯Êý
1£¬encodeURI·½·¨
     ·µ»Ø¶ÔÒ»¸öURI×Ö·û´®±àÂëÖеĽá¹û£¬±¾ÖÊÊÇUTF-8±àÂë
     eg:
     var urlStr = encodeURI('http://fanli.qq.com/index.html?a=ddd&msg=Öйú');
     alert(urlStr);
2, decodeUR ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ