摘要:
脚本绑定到摄像机,x是指摄像机视角左右旋转角度,y是指摄像机视角上下旋转角度,target为目标物体。initDis为初始化摄像机与目标物体的距离。首先设置摄像机旋转角度,这里Euler(y, x, 0),意义为绕x轴旋转y角度,三维空间中绕x轴旋转即为上下旋转,绕y轴旋转x角度,三维空间中绕y轴旋转即为左右旋转。transform.rotation = Quaternion.Euler(y, x, 0);Vector3(0.0, 0.0, -initDis)意义为z轴方向距离原点(0,0,0)为initDis,Quaternion * Vector3意义为向量Vector3绕原点旋转Quat 阅读全文
摘要:
文件夹权限那些不说了,主要是要把网站所属的iis的应用程序池设置为本地系统 阅读全文
摘要:
某页面中button按钮事件写代码如下:string Str1="http://www.sohu.com/";Response.Write("<script>window.open('" + Str1 + "','_blank');window.showModalDialog('close.htm');</script>");close.htm文件 代码为<html><body onload="window.parent.opener= 阅读全文
摘要:
publicclassWinMessageHelper{privatestructCOPYDATASTRUCT{publicIntPtrdwData;publicintcbData;[MarshalAs(UnmanagedType.LPStr)]publicstringlpData;}//使用COPYDATA进行跨进程通信publicconstintWM_COPYDATA=0x004A;[DllImport("User32.dll",EntryPoint="SendMessage")]privatestaticexternintSendMessage(i 阅读全文
摘要:
css: <styletype="text/css">*{margin:0;padding:0;border:0;}body{font-family:arial,宋体,serif;font-size:12px;}.navRoot{list-style-type:none;background:#666;height:30px;}.navRootli{position:relative;height:30px;line-height:30px;}.navRootlia:link,.navRootlia:visited{display:block;text-deco 阅读全文
摘要:
declare@anvarchar(max)set@a='402844e42fa142a4012fb45fbfa40453,402844e42fa142a4012fb45fbfa40452'select*fromAuditRecwherecharindex(','+EmployeeID+',',','+@a+',')>0 阅读全文
摘要:
在Firefox中需要把filename 用双引号包起来,才能得到想要的名字,不然如果含有空格,会丢掉空格后面的部分。而IE会把空格转为_,因此也需要HttpUtility.UrlPathEncode方法处理下名字。如果Firefox中也用HttpUtility.UrlPathEncode处理名字,空格将被替换成"%20".HttpContext.Current.Response.Buffer=true;HttpContext.Current.Response.ClearContent();HttpContext.Current.Response.ClearHeaders( 阅读全文
摘要:
.bBox{width:300px;}.bBox-t1,.bBox-t2,.bBox-b1,.bBox-b2{height:1px;overflow:hidden;margin:0px;}.bBox-t1{border:0px;margin:0px2px0px1px;}.bBox-t2{border-width:0px1px;border-style:solid;margin-right:1px;}.bBox-offset{margin:0px;border:0px;}.bBox-body{border-width:0px1px;border-style:solid;margin-right: 阅读全文
摘要:
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><title></title><styletype="text/css">* 阅读全文
摘要:
publicclassWebServiceConfig{publicstaticvoidSetImagePathServiceUrl(){ImageService.Properties.Settings.Default.Properties["ImageService_ImagePathService_FlashImagePath"].DefaultValue=System.Web.Configuration.WebConfigurationManager.AppSettings["FlashImagePathServiceUrl"];ImageServ 阅读全文