自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

转载 IFrame引用跨域站点页面时,Session失效问题解决

<br />问题场景: <br />   在一个应用(集团门户)的某个page中, 通过IFrame的方式嵌入另一个应用(集团实时监管系统)的某个页面. 当两个应用的domain 不一样时, 在被嵌入的页面中Session失效。(session基于cookie实现,引用页不允许使用cookie). <br /><br />问题分析: <br />      IE6/IE7从安全性角度考虑,支持的P3P(Platform for Privacy Preferences Project (P3P) specif

2010-08-18 11:24:00 854

原创 商品对比的JS文件

//得到cookie中的值function CookieValue(name){ var new_arg=name+"="; var clen=document.cookie.length; if (document.cookie.indexOf(new_arg)!=-1) {  vstr=document.cookie.indexOf(new_arg)+new_arg.length;  if (

2009-09-11 11:48:00 2482 2

原创 ASP 二级联动下拉框

二级数据保存到数组Dim count1,cityRS,citySQLset cityRS=server.createobject("adodb.recordset")citySQL="select * from city order by shiorder" cityRS.open citySQL,conn,1,1%>var subval2 = new Array();//数组结构:一级根值

2009-05-05 09:21:00 5140 2

原创 ASP通过SOAP调用WebService

刚才研究了下怎么用ASP调用WebService,其实调用WebService返回数据很简单,但怎么去请求WebService就不太清楚了。查了一些资料,试着用SOAP来做请求,同时返回结果,第一次没成功,说是Set soapclient = server.CreateObject("MSSOAP.SoapClient30") 这行有错误,这肯定就是组件没注册了。想在找找还有其他的方法

2009-03-12 16:13:00 7838 1

转载 ASP操作XML的方法

ASP通过XMLDom在服务器端操作XML文件的主要方法和实现 对于小数据量,xml文件在检索更新上于ACCESS有很多优势。我曾经测试过不用数据库,把网站的会员信息,商品数据信息,交易信息,网站定制信息全部存放在三个xml文件中,运行结果十分正常,感觉上比数据库快多了,不过没有作测试,不能确定。下面说一下创建,查询,修改等对xml操作的主要方法创建DOM对象set objDom=s

2009-03-12 13:38:00 1006

转载 C#读取RSS的方法

//读取RSS函数LoadRSS //参数RssURl 为RSS路径 //参数RssCount为读取的RSS条数 public string LoadRSS(string RssUrl , int RssCount)     {         XmlDocument doc = new XmlDocument();         string Rss = "";         if (Rss

2009-02-14 08:12:00 3194 4

原创 ASP.NET禁止重复提交

.disable{    border-style:none;    border-width: thin;    background-color:Transparent;    color: #CCCCCC;    cursor:wait;}function DisableButton(){    document.getElementById("Button1").className

2008-12-08 14:39:00 1696 15

原创 多选列表框功能

function MM_findObj(n, d) { //v4.0  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d

2008-11-26 21:29:00 3013 3

原创 aspjpeg生成水印

Set Jpeg = Server.CreateObject("Persits.Jpeg") Jpeg.Open Server.MapPath("abc.png")//源图片位置 Jpeg.Canvas.Font.Color =&Hb80911//字体颜色 Jpeg.Canvas.Font.Family = "文鼎CS大宋"//字体 Jpeg.Canvas.Font.Bold = false

2008-11-21 17:30:00 664

原创 分页函数

***********************************************函数名:JoinChar作  用:向地址中加入 ? 或 &参  数:strUrl  ----网址返回值:加了 ? 或 & 的网址***********************************************function JoinChar(strUrl) if strUr

2008-11-15 19:47:00 1382 1

转载 鼠标滑过链接出现的对话框式提示效果

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">无标题文档function enableTooltips(id){var links,i,h;if(!document.getElementById || !document.getElementsByTagName) ret

2008-11-03 16:28:00 1017 2

转载 鼠标滑过图片出现大图片提示层效果js代码

 #demo{overflow:hidden;width:120px;text-align:center;padding:10px;}#demo img{border:none;width:100px;height:100px;border:5px solid #f4f4f4}#enlarge_images{position:absolute;display:none;z-index:2;bord

2008-11-03 16:25:00 1159

转载 javaScript通用数据类型校验

/* * 判断是否为整数,是则返回true,否则返回false */function f_check_integer(obj)   {              if (/^(/+|-)?/d+$/.test( obj.value ))        {          return true;       }        else        {           f_alert(obj

2008-11-03 15:42:00 868

原创 整理一些我经常用到的函数吧(不断更新)

**********************************************************************************************函数名称: strReplace(Str)函数功能: 过滤单引号参数说明: Str  **********************************************************

2008-11-03 10:11:00 1176

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除