随笔分类 - JavaScript
JavaScript 开源 框架 基础。
摘要:主程序代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--functiongetXmlhttp(){varhttp_request;if(window.XMLHttpRequest){http_request=newXMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType("text/xml");}}elseif(window.ActiveXOb
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--pre用JS让文章内容指定的关键字加亮是这样的..现在有这些关键字:美容,生活,购物当在文章里头出现这些关键字,就把它加亮显示..文章是生成静态页面的,而这些关键字是能随时更新的,所以我想用JS来实现...不知道怎样来实现这样的功能啊?特此求助/prescriptlanguage="JavaScript"functionhighlight(key){varkey=key.split('
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--ahref="#"onclick="window.frames['frame1'].MyNext()"aa/aiframeid="frame1"src="print.html"/iframeprint.html页面scriptlanguage="javascript"type="text/javascript"functionMyNext(){alert(1);}/scrip
阅读全文
摘要:C#代码foreach( Control childControl in this.Controls ) { if( childControl is TextBox ){ ((TextBox)childControl).Text = ""; } }Js代码function ClearAllTextBox() { var obj=window.document.forms[0]; for(i=0;i...
阅读全文
摘要:1,有如下表格,我们要取第2行第2列的值<table id="table1"> <tr> <td>1行1列</td> <td>1行2列</td> </tr> <tr> <td>2行1列</td> <td>2行2列</td> </tr></...
阅读全文
摘要:javascript:连接数据库<scriptlanguage="javascript">//用JavaScript写服务器端连接数据库的代码示例varconn=newActiveXObject("ADODB.Connection");conn.Open("Provider=SQLOLEDB.1;DataSource=localhost;UserID=sa;"+"Password=;InitialCatalog=pubs");varrs=newActiveXObject("ADODB.Reco
阅读全文
摘要:最近在研究编辑器的开发,这方面的东西网上的例子比较少,因为大家都在用免费的编辑器,或别人开发好的,这种编辑器大多都是用js写的,今天在网上找了一篇比较全的execCommand事件的重载方法,全转过来供以后查询。ID.document.designMode="on" 使iframe处在可编辑状态为off时为不可以编辑ID.focus(); 获取当前iframe的焦点ID.document.sele...
阅读全文
摘要:/******************************************************************************** JONEAjax 获取dom 对象,ajax操作,读写cookie* @author Roddy <minguiluo@gmail.com>* @site http://www.cnblogs.com/luomingui/*...
阅读全文

浙公网安备 33010602011771号