[code]<?phpheader('Expires:Mon,26Jul199705:00:00GMT');header('Last-Modified:'.gmdate('D,dMYH:i:s').'GMT');header('Cache-Control:no-cache,must-revalidate');header('Pragma:no-cache');?>[/code]...
http://www.jb51.net//article/17035.htm
要异步传输的数据:Xml代码....<actionxsi:type="basic:JavaScript"script="index+=1;"/>....Ajax异步传输代码:Js代码[code]varpostData="input="+escape(inputJSON)+"&script="+escape(xml)+"&feedGeneral="+escape(feedGeneral);XmlHttpRequest.open("POST",url,true);XmlHttpRequest.setRequestHeader("Content-Type","applic...
http://www.jb51.net//article/16975.htm
<html><head><title>b</title><scriptlanguage="javascript">functionA(){document.getElementById("divId").innerText="点了AAAAAAAAAAA";}functionB(){document.getElementById("divId").innerText="点了BBBBBBBBBB";}</script></head><body>现在页面没有遭到js的影响,很安静!<br>&l...
http://www.jb51.net//article/16661.htm
演示代码:[code]#!/usr/bin/envrubyCOUNT=10require'benchmark'$account_chars=('A'..'Z').to_a.delete_if{|c|c=~/[AEIOUY]/}#$password_chars=('0'..'9').to_a$password_chars=Array.new$password_chars[0..9]=('0'..'9').to_a$password_chars[10..36]=('A'..'Z').to_adefaccount_char$account_chars[rand($account_chars.leng...
http://www.jb51.net//article/16647.htm
[html]<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><title>随着输入文字的多少自动变化宽度的INPUT,带计数</...
http://www.jb51.net//article/16608.htm
[code]window["MzBrowser"]={};(function(){if(MzBrowser.platform)return;varua=window.navigator.userAgent;MzBrowser.platform=window.navigator.platform;MzBrowser.firefox=ua.indexOf("Firefox")>0;MzBrowser.opera=typeof(window.opera)=="object";MzBrowser.ie=!MzBrowser.opera&&ua.indexOf("MSIE")>...
http://www.jb51.net//article/16473.htm
[html]<html><head><scripttype="text/javascript">functionupLoadKey(e){((document.all)?true:false)==true?(window.event.returnValue=false):e.preventDefault();}</script></head><body><inputname="textfield3"type="file"class="input"id="textfield3"size="30"value=""onke...
http://www.jb51.net//article/16453.htm
[html]<script>vara="";for(vari=65;i<91;i++)a+=String.fromCharCode(i);alert(a);</script>[/html]...
http://www.jb51.net//article/16445.htm
一、定义文档类型、字符编码 Response.Clear(); Response.Buffer=true; Response.Charset="utf-8"; //下面这行很重要,attachment参数表示作为附件下载,您可以改成online在线打开 //filename=FileFlow.xls指定输出文件的名称,注意其扩展名和指定文件类型相符,可以为:.doc .xls .txt .htm Response.AppendHeader("Content-Disposition","attachment;filename=FileFlow.xls"); Respo...
http://www.jb51.net//article/16444.htm
usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.UI.HtmlControls;usingSystem.Text;namespaceEC{///<summary>///信息输出通用方法///</summary>publi...
http://www.jb51.net//article/16422.htm
'定义变量Dimcn,rs,SqlSql="selectCustomerIDfromOrders"'记录总数DimTotalNumbeSetcn=Server.CreateObject("ADODB.Connection")cn.Open"Provider=SQLOLEDB.1;UserID=sa;InitialCatalog=NorthWind;DataSource=.;Password=;"Setrs=Server.CreateObject("ADODB.Recordset")rs.OpenSql,cn,3,1TotalNumber=rs.RecordCountIfTotalNumber=...
http://www.jb51.net//article/16365.htm
