脚 本 之 家 www.jb51.net
页面导航:  不限条件-->TR
本地搜索:
在一个含有Flash的网页中插入Flash会提示:警告:不建议使用getBoxObjectFor()。请使用element.getBoundingClientRect()。经本人测试,确实是Firefox在含flash的网页上提示,还不知道原因,也没找到解决办法。Firefox版本:3.0.3Flash:10.0html页面代码:[code]<html><body><objecttype="application/x-shockwave-flash"data="Inc/images/clock.swf"width="400"height="400"><...
http://www.jb51.net//article/16291.htm
而Easp类中提供了大量实用的ASP通用过程及方法,可以简化大部分的ASP操作。目前只提供了VBScript版,JScript版将来可能会提供。EasyASPv1.5(2008-10-22更新)新增功能:1、将数据库控制类(原clsDbCtrl.asp)封装入Easp类,均通过Easp.db调用,也可独立使用。2、新增MSSQL存储过程调用方法,可灵活调用存储过程并返回返回值、记录集及出参。3、新增db.CreatConn方法,可以根据自定义的连接字符串连接数据库。4、新增db.Json方法,可以将数据库记录集按Json格式输出。5、新增db.Rand和db.RandStr方法,可以生成一个不...
http://www.jb51.net//article/16259.htm
[html]<inputtype="text"name="mytxt"value="12345678"/><br><inputtype="button"name="cmd1"onclick="mytxt2.value=mytxt.value.trim()"value="去两边的空格"/><inputtype="text"name="mytxt2"/><br><inputtype="button"name="cmd1"onclick="mytxt3.value=mytxt.value.ltrim()"value="去左边的空格"/...
http://www.jb51.net//article/16250.htm
asp按关键字查询XML的问题'------------------------------------------------------'读取文件ReadTxtFile(FileName)'------------------------------------------------------FunctionReadTxtFile(FileName)Dimfso,f1,ts,FilePathFilePath=server.mappath(FileName)Setfso=CreateObject("Scripting.FileSystemObject")Setts=fso.OpenTex...
http://www.jb51.net//article/16183.htm
解决办法:写一个aspx页面,在aspx页面只留下这一句 [code]<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="Data.aspx.cs"Inherits="Data"%>cs文件如下:publicpartialclassData:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){StreamReadersr=newStreamReader(Server.MapPath("")+"\\xml-tree-data.xml");Re...
http://www.jb51.net//article/16163.htm
这段时间在看《PHP和MySQLWeb开发》一书看到str_replace讲解,一段小提示写到:可以为str_replace的三个都使用数组传入,但讲解比较简单,于是决定自己的试验一下该函数在各个参数传入数组时的执行结果。函数原型:mixedstr_replace(mixedneedle,mixednew_needle,mixedhaystack[,int&count]);needle:要被替换的字符串,new_needle:替换用的字符串,haystack:操作字符串,count:替换次数【可选参数】我们重点试验前三个在使用数组是的执行方式:在都不使用数组时,该函数直接使用new_n...
http://www.jb51.net//article/16147.htm
采集回来的图片img标签中,有好多javascript脚本和无用的信息,必需过替换自己想要的,比如alt。先看看要过滤的内容,我随便复制出来:[code]sdfsdfsdf<imgalt=”3568df.com靓图”src=”http://www.aaa.com/upimg/080330/120D1232295023X0.gif”mce_src=”http://www.eee.com/upimg/080330/120D1232295023X0.gif”width=1onclick=”javascript:;”onload=”javascript:if(this.width>500)...
http://www.jb51.net//article/16146.htm
dao层接口:Java代码[code]packagecom.last999.im.news.dao;importjava.util.*;importcom.last999.im.news.entity.KindEntity;importcom.last999.im.news.web.PageTool;publicinterfaceKindEntityDao{publicKindEntityget(Stringuuid);publicvoidsave(KindEntitykindEntity);publicvoidupdate(KindEntitykindEntity);publicvoidde...
http://www.jb51.net//article/15976.htm
<scripttype="text/javascript">functiontrim(str){//删除左右两端的空格returnstr.replace(/(^\s*)|(\s*$)/g,"");}functionltrim(str){//删除左边的空格returnstr.replace(/(^\s*)/g,"");}functionrtrim(str){//删除右边的空格returnstr.replace(/(\s*$)/g,"");}</script>使用方法<script>functionaaa(){vars=document.getElementBy...
http://www.jb51.net//article/15911.htm
Q:IamworkingwithOracledatabase8.1.7andIhavewrittenaJAVAcodetoupdatethetablewhichcontainsoneBLOBfield.IamusingupdateBinaryStreammethodofresultsettoupdatetheBLOBfieldbutitisfailingaftergivingfollowingexceptionjava.sql.SQLException:InternalError:UnabletoconstructaDatumfromthespecifiedinputCananyonehelp...
http://www.jb51.net//article/15887.htm
比如下面的例子:classBook(object):   def__setattr__(self,name,value):       ifname=='value':           object.__setattr__(self,name,value-100)       else:  &n...
http://www.jb51.net//article/15718.htm
共有:228/10,当前2/23页  [首页] [上一页] 1 2 3 4 5 6 7 8 [下一页]  [尾页] 转到: