摘要:我们在网上经常看到有的网页上有一块内容,不管垂直滚动条如何翻动网页,始终在屏幕上的同一位置,我把它称为“浮动层”,因为它看起来象在网页上似的(你看右上角那个黄色的菜单条,就是下面两个例子所做来的效果)。制作这种效果要借助于Javascript,我在这里给你介绍两种制作方法,一种在改变例子中提供的样式时,需要手动编写代码,适合于对HTML熟悉的朋友;另一种方法在改变例子中提供...
阅读全文
随笔分类 - Javascript
摘要:这篇文章说的是js中操作xml文件.我的xml文件Login.xml如下.<?xmlversion="1.0"encoding="utf-8"?><Login><Character><CText="热血"Value="0"></C><CText="弱气"Value="1"></C><CText="激情"Val...
阅读全文
摘要:如果说没有服务器端,仅凭客户端的JAVASCRIPT,能不能完成对一个XML文件的增加,修改,删除结点的工作? 这是可以完成的,我将在接下来的示例中举出,例子中尽量用上所有的操作和属性,以做示范: <script language="javascript"> <!-- var doc = new ActiveXObject("Msxml2.DOMDocument"); //ie5...
阅读全文
摘要:style ObjectRepresents the current settings of all possible inline styles for a given element.Members TableThe following table lists the members exposed by the style object. Click a tab on the left to...
阅读全文
摘要:<html><head><title>Mytable</title><style>.table0{height:90%;}.table0caption{width:100%;height:26px;line-height:26px;font-size:20px;font-color:black;font-weight:900;letter...
阅读全文
摘要:functionMM_preloadImages(){//v3.0vard=document;if(d.images){if(!d.MM_p)d.MM_p=newArray();vari,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)if(a[i].indexOf("#")!=0){d.MM_p[j]=...
阅读全文
摘要:解决了对中文的不支持问题.先用escape()对中文进行编码.然后再进行base64编码.解码时,再加入unescape()对中文进行解码.<html><head><title>base64Encoding/Decoding</title></head><scripttype="text/javascript">&...
阅读全文
摘要:窗体顶端事件源对象 event.srcElement.tagName event.srcElement.type 捕获释放 event.srcElement.setCapture(); event.srcElement.releaseCapture(); 事件按键 event.keyCode event.shiftKey event.altKey event.ctrlKey 事件返回值 event...
阅读全文
摘要:============================webform1.aspxprivate void Page_Load(object sender, System.EventArgs e) { // 在此处放置用户代码以初始化页面 if(!IsPostBack) { SqlConnection con = new SqlConnection("packet size...
阅读全文
摘要:links.AppendFormat("{1} 删除",acce.Guid,System.IO.Path.GetFileName(acce.ClientFilePath),acce.Name);
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
阅读全文

浙公网安备 33010602011771号