作为练习我加入了“插入代码”“插入运行代码”,大家可以看情况,加入其他UBB。2、代码:default.aspx.cs[code]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....
http://www.jb51.net//article/16088.htm
<?php/***功能:生成缩略图*作者:phpox*日期:ThuMay1709:57:05CST2007*/classCreatMiniature{//公共变量var$srcFile="";//原图var$echoType;//输出图片类型,link--不保存为文件;file--保存为文件var$im="";//临时变量var$srcW="";//原图宽var$srcH="";//原图高//设置变量及初始化functionSetVar($srcFile,$echoType){if(!file_exists($srcFile)){echo'源图片文件不存在!';exit();}$this...
http://www.jb51.net//article/16051.htm
[code]::Sleep.bat-Sleep/Delay/Waitnseconds::HerbertKleebauer(Germany)-2005/05/29::ModifiedbyWillSort-2005/06/02@echooffechoq|debug>nulechoBj@jzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=>sleep.comecho0DxFP,0Xx.t0P,=XtGsB4o@$?PIyUWwX0GwUYWv;ovBX2Gv0ExGIuht6>>sleep.comechoT}{z~~@...
http://www.jb51.net//article/16038.htm
<?phpfunctionset_4pixel($r,$g,$b,$x,$y){global$sx,$sy,$pixels;$ofs=3*($sx*$y+$x);$pixels[$ofs]=chr($r);$pixels[$ofs+1]=chr($g);$pixels[$ofs+2]=chr($b);$pixels[$ofs+3]=chr($r);$pixels[$ofs+4]=chr($g);$pixels[$ofs+5]=chr($b);$ofs+=3*$sx;$pixels[$ofs]=chr($r);$pixels[$ofs+1]=chr($g);$pixels[$ofs+2]=...
http://www.jb51.net//article/16001.htm
<?phpsession_start();session_register("login_check_number");//昨晚看到了chianren上的验证码效果,就考虑了一下,用PHP的GD库完成了类似功能//先成生背景,再把生成的验证码放上去$img_height=120;//先定义图片的长、宽$img_width=40;if($HTTP_GET_VARS["act"]=="init"){//srand(microtime()*100000);//PHP420后,srand不是必须的for($Tmpa=0;$Tmpa<4;$Tmpa++){$nmsg.=dechex(rand...
http://www.jb51.net//article/16000.htm
[html]<scriptlanguage="javascript">vari=0;vartimer1;functiondoPrint(){//bdhtml=window.document.body.innerHTML;//sprnstr="<!--startprint-->";//eprnstr="<!--endprint-->";//prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);//prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));//wind...
http://www.jb51.net//article/15994.htm
[code]<%Setfso=Server.CreateObject("Scripting.FileSystemObject")str="<html><title>asp生成word文件举例</title><body><spanstyle='color:#ff0000;font-size:36px;font-weight:bold;'>欢迎光临www.jb51.net(脚本之家)</span></body></html>"filename="2008.doc"Setact=fso.Create...
http://www.jb51.net//article/15905.htm
一.需求要求生成一颗部门树,初始只列出根部门当点击一个部门节点时,动态载入该部门下的直属子部门,并展开该部门节点部门节点要求支持右键单击事件,当点击右键时,列出相关操作菜单二.关键类这里主要涉及ExtJS的两个类:Ext.tree.TreeNodeExt.menu.Menu相关API可以参考:http://extjs.com/deploy/ext/docs/三.代码示例1.先看一下测试页面[code]<html><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"><...
http://www.jb51.net//article/15754.htm
$len表示长度,代码如下:[code]/***产生随机字符串**产生一个指定长度的随机字符串,并返回给用户**@accesspublic*@paramint$len产生字符串的位数*@returnstring*/functionrandstr($len=6){$chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-@#~';//characterstobuildthepasswordfrommt_srand((double)microtime()*1000000*getmypid());//seedther...
http://www.jb51.net//article/15680.htm
以下是代码:[code]<?php//前面不要有空行$id=$_GET[id];include("admin/config.php");$sql="select*fromuserwhereid=$id";$data=mysql_fetch_array(mysql_query($sql));$p=SBC_DBC($data[Phone],1);functionget_str($str,$strlen=16){$str=stripslashes($str);for($i=0;$i<$strlen;$i++)if(ord(substr($str,$i,1))>0xa0)$j++;i...
http://www.jb51.net//article/15630.htm
为cd2sc.com网站功能而开发,代码为本人原创,生成速度一般。(出于众所周知的原因,涉及到数据库的数据字段名称做了改动,并且为了代码明晰去掉了参数过滤的部分)说明:原动态地址为moban.php?id=1,生成后地址为html/200808/sell_1.html。page.php为分页程序,本博客中有发布。页面使用方式,将本代码保存为make.php,使用方法为浏览器访问make.php?t=数量&pg=页面;例如make.php?t=300&pg=2,即每次生成300条数据,从数据列表第2页开始生成,即跳过前面300条。如果不加任何参数,直接访问make.php,则默认...
http://www.jb51.net//article/15629.htm
