禁止iframe页面的JS脚本,可以阻止网页跳转
2018-4-2 乱云飞 代码 评论(0) 浏览(1030) 标签: 禁止JS 网页跳转
<iframe src="http://gantong.cc/" security="restricted" sandbox="">
PHP读取MDB数据库实例教程
2018-3-31 乱云飞 代码 评论(0) 浏览(1092) 标签: 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>"; } ?>
PHP读取SQL数据库实例教程
2018-3-31 乱云飞 代码 评论(0) 浏览(992) 标签: 读取SQL数据库 php代码
<?php //PHP读取SQL数据库 $con = mysql_connect("localhost","root","123456");//连接数据库 if (!$con){ die("数据库服务器连接失败"); } //如果出错提示 @mysql_select_db("dbname", $con);//数据库名字 mysql_query("set names 'utf8'");//避免中文乱码 $sql = "SELECT * FROM emlog_blog"; //定义变量,选取表 $result = mysql_query($sql); //执行SQL语句,获得结果集 //下面是打印输出,样式随意 echo "<table border=1>"; while( $row = mysql_fetch_array($result) )//逐行获取 { $gid= $row['gid']; $title = $row['title']; $date = $row['date']; echo "<tr>"; echo "<td>$gid</td>"; echo "<td>$title</td>"; echo "<td>$date</td>"; echo "</tr>"; } echo "<table />"; ?>
弹出QQ聊天窗口和加好友窗口
2018-3-21 乱云飞 代码 评论(0) 浏览(1704) 标签: 网页QQ 弹出QQ聊天窗口 弹出加好友
artDialog.open("tencent://Message/?Uin=345794501&websiteName=www.80c.cc&Menu=yes",{width:300,height:100,resize:true,title:"与我联系",time:0.01})
artDialog.open("tencent://AddContact/?fromId=45&fromSubId=1&subcmd=all&uin=345794501&website=www.80c.cc",{width:300,height:100,resize:true,title:"加好友",time:0.01})
Emlog程序去除文章详情页URL中的Post教程
2018-3-21 乱云飞 代码 评论(0) 浏览(1075) 标签: emlog 去掉问号 伪静态 去掉POST
确认支持Rewrite后进行如下操作: 找到【\include\lib\url.php-第44行】 【修改前】$logUrl = BLOG_URL . 'post-' . $blogId . '.html'; 【修改后】$logUrl = BLOG_URL . '' . $blogId . '.html'; 保存替换就可以了
超出部分隐藏,不换行,加省略号
2018-3-18 乱云飞 代码 评论(0) 浏览(924) 标签: CSS代码 禁止换行
overflow: hidden; text-overflow:ellipsis; white-space: nowrap;
新发现的一个同花顺指标,比较准确
2018-3-16 乱云飞 代码 评论(0) 浏览(1139) 标签: 同花顺公式 钱袋指标
持币:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,colorblue; 持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,colorred; {} ZT:=C/REF(C,1)>1.097; ZTBPJ:=REF(C,BARSLAST(ZT)+1)*0.98;//{涨停不破价} ZTBP:=BARSLAST(ZT)<30 AND (LLV(C,BARSLAST(ZT))>=ZTBPJ OR LLV(C,BARSLAST(ZT))=ZTBPJ);//{涨停不破价} STICKLINE(ZTBP,REF(C,BARSLAST(ZT)+1)-REF(C,BARSLAST(ZT)+1)*0.001,REF(C,BARSLAST(ZT)+1),1,0),coloryellow; DRAWTEXT(ZT,L*0.98,'涨停'),colorlimagenta; 不破价:=REF(L,BARSLAST(ZT)); LS0:=BARSLAST(ZT);LS11:=IF(2,LS0=2,ZT); LS21:=IF(2,LLV(L,2)>REF(L,2),1); ZT不破2:=LS11 AND LS21; DRAWTEXT(ZT不破2,不破价-不破价*0.02,'3'),colorgreen; LS14:=IF(4,LS0=4,ZT); LS24:=IF(4,LLV(L,4)>REF(L,4),1); ZT不破4:=LS14 AND LS24; DRAWTEXT(ZT不破4,不破价-不破价*0.02,'5'),colorgreen; LS17:=IF(7,LS0=7,ZT); LS27:=IF(7,LLV(L,7)>REF(L,7),1); ZT不破7:=LS17 AND LS27; DRAWTEXT(ZT不破7,不破价-不破价*0.02,'8'),colorgreen; LS22:=IF(12,LS0=12,ZT); LS32:=IF(12,LLV(L,12)>REF(L,12),1); ZT不破12:=LS22 AND LS32; DRAWTEXT(ZT不破12,不破价-不破价*0.02,'13'),colorgreen; XH:=FILTER(ZT,13); BH:=BARSLAST(ZT); CZ:=REF(H,BH)-REF(L,BH); 迫线:=C>O AND V>REF(V,1) AND L>REF(C,1) AND REF(ZT,1); 小阳:=C>O AND V>REF(V,1) AND REF(ZT,1); 起爆:=REF(HHV(V,8),1)/V>=1.97 AND REF(HHV(小阳,8),1) AND C>O; STICKLINE(ZT,REF(O,BH),REF(C,BH),2,0),coloryellow; DRAWTEXT(ZT,L*0.98,'涨停'),COLORF00FF0; STICKLINE(迫线,O,C,2,0),colormagenta; DRAWTEXT(迫线,L*0.98,'迫'),COLORF00FF0; DRAWICON(小阳,LOW*0.995,25); DRAWTEXT(起爆,L*0.92,'爆'),colorred; Q:=MA(C,2); OK:=CROSS(Q,REF(Q,1)) AND REF(HHV(ZT,8),1); DRAWTEXT(OK,L,'★拐点'),colorred; O1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),COLOR00FFFF,LINETHICK0; O2:EMA(O1,3),COLORFF00FF,LINETHICK0; O3:EMA(O2,3),COLOR00FF00,LINETHICK0; MMM:=MA(CLOSE,20); PEAK1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2); VAR21:=REF(PEAK1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR31:=REF(VAR21,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR4:=REF(VAR31,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2); VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND PEAK1; VAR1A:=REF(PEAK1 OR VAR21 OR VAR31 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD; {STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3.2,0),COLORFF3300; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.7,0),COLORFF5500; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.1,0),COLORFF7700; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORFF9900; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.9,0),COLORFFBB00; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.3,0),COLORFFDD00;} DRAWICON(FILTER(VAR19=1,5),LOW*0.995,9); DRAWICON(FILTER(VAR1A=1,5),HIGH*1.008,0); DRAWICON(FILTER(VAR1A=1,5),HIGH*1.03,15); 下降压力线:DRAWLINE(HIGH>=HHV(HIGH,12),HIGH,LOW<=LLV(LOW,12),HHV(HIGH,4),1),LINETHICK1,COLOR00BC00; 上涨支撑线:DRAWLINE(LOW<=LLV(LOW,12),LOW,HIGH>=HHV(HIGH,4),LLV(LOW,4),1),LINETHICK1,colorwhite; DRAWNUMBER(ISLASTBAR,上涨支撑线,上涨支撑线),coloryellow;股票
批处理删除前五位,保留前五位
2018-2-21 乱云飞 代码 评论(0) 浏览(892) 标签: 批处理 删除前N位
setlocal enabledelayedexpansion for /f "tokens=*" %%i in ('type aaa.txt') do ( set str=%%i echo !str:~5!>>hou.txt ) @echo 删除前五位 ------------------------------------ @echo off setlocal enabledelayedexpansion for /f "delims=" %%i in (aaa.txt) do ( set p=%%i echo !p:~6!>>OK.txt ) pause>nul @echo 删除前六位
网页设计颜色代码表
2018-2-15 乱云飞 代码 评论(0) 浏览(1796) 标签: 颜色代码表 网页设计 颜色名
序号
英文代码
中文名称
HEX格式
RGB格式
001
LightPink
浅粉红
#FFB6C1
255,182,193
002
Pink
粉红
#FFC0CB
255,192,203
003
Crimson
猩红
#DC143C
220,20,60
004
LavenderBlush
脸红的淡紫色
#FFF0F5
255,240,245
005
PaleVioletRed
苍白的紫罗兰红色
#DB7093
219,112,147
006
HotPink
热情的粉红
#FF69B4
255,105,180
007
DeepPink
深粉色
#FF1493
255,20,147
008
MediumVioletRed
适中的紫罗兰红色
#C71585
199,21,133
009
Orchid
兰花的紫色
#DA70D6
218,112,214
010
Thistle
蓟
#D8BFD8
216,191,216
011
plum
李子
#DDA0DD
221,160,221
012
Violet
紫罗兰
#EE82EE
238,130,238
013
Magenta
洋红
#FF00FF
255,0,255
014
Fuchsia
灯笼海棠(紫红色)
#FF00FF
255,0,255
015
DarkMagenta
深洋红色
#8B008B
139,0,139
016
Purple
紫色
#800080
128,0,128
017
MediumOrchid
适中的兰花紫
#BA55D3
186,85,211
018
DarkVoilet
深紫罗兰色
#9400D3
148,0,211
019
DarkOrchid
深兰花紫
#9932CC
153,50,204
020
Indigo
靛青
#4B0082
75,0,130
021
BlueViolet
深紫罗兰的蓝色
#8A2BE2
138,43,226
022
MediumPurple
适中的紫色
#9370DB
147,112,219
023
MediumSlateBlue
适中的板岩暗蓝灰色
#7B68EE
123,104,238
024
SlateBlue
板岩暗蓝灰色
#6A5ACD
106,90,205
025
DarkSlateBlue
深岩暗蓝灰色
#483D8B
72,61,139
026
Lavender
熏衣草花的淡紫色
#E6E6FA
230,230,250
027
GhostWhite
幽灵的白色
#F8F8FF
248,248,255
028
Blue
纯蓝
#0000FF
0,0,255
029
MediumBlue
适中的蓝色
#0000CD
0,0,205
030
MidnightBlue
午夜的蓝色
#191970
25,25,112
031
DarkBlue
深蓝色
#00008B
0,0,139
032
Navy
海军蓝
#000080
0,0,128
033
RoyalBlue
皇家蓝
#4169E1
65,105,225
034
CornflowerBlue
矢车菊的蓝色
#6495ED
100,149,237
035
LightSteelBlue
淡钢蓝
#B0C4DE
176,196,222
036
LightSlateGray
浅石板灰
#778899
119,136,153
037
SlateGray
石板灰
#708090
112,128,144
038
DoderBlue
道奇蓝
#1E90FF
30,144,255
039
AliceBlue
爱丽丝蓝
#F0F8FF
240,248,255
040
SteelBlue
钢蓝
#4682B4
70,130,180
041
LightSkyBlue
淡蓝色
#87CEFA
135,206,250
042
SkyBlue
天蓝色
#87CEEB
135,206,235
043
DeepSkyBlue
深天蓝
#00BFFF
0,191,255
044
LightBLue
淡蓝
#ADD8E6
173,216,230
045
PowDerBlue
火药蓝
#B0E0E6
176,224,230
046
CadetBlue
军校蓝
#5F9EA0
95,158,160
047
Azure
蔚蓝色
#F0FFFF
240,255,255
048
LightCyan
淡青色
#E1FFFF
225,255,255
049
PaleTurquoise
苍白的绿宝石
#AFEEEE
175,238,238
050
Cyan
青色
#00FFFF
0,255,255
051
Aqua
水绿色
#00FFFF
0,255,255
052
DarkTurquoise
深绿宝石
#00CED1
0,206,209
053
DarkSlateGray
深石板灰
#2F4F4F
47,79,79
054
DarkCyan
深青色
#008B8B
0,139,139
055
Teal
水鸭色
#008080
0,128,128
056
MediumTurquoise
适中的绿宝石
#48D1CC
72,209,204
057
LightSeaGreen
浅海洋绿
#20B2AA
32,178,170
058
Turquoise
绿宝石
#40E0D0
64,224,208
059
Auqamarin
绿玉\碧绿色
#7FFFAA
127,255,170
060
MediumAquamarine
适中的碧绿色
#00FA9A
0,250,154
061
MediumSpringGreen
适中的春天的绿色
#F5FFFA
245,255,250
062
MintCream
薄荷奶油
#00FF7F
0,255,127
063
SpringGreen
春天的绿色
#3CB371
60,179,113
064
SeaGreen
海洋绿
#2E8B57
46,139,87
065
Honeydew
蜂蜜
#F0FFF0
240,255,240
066
LightGreen
淡绿色
#90EE90
144,238,144
067
PaleGreen
苍白的绿色
#98FB98
152,251,152
068
DarkSeaGreen
深海洋绿
#8FBC8F
143,188,143
069
LimeGreen
酸橙绿
#32CD32
50,205,50
070
Lime
酸橙色
#00FF00
0,255,0
071
ForestGreen
森林绿
#228B22
34,139,34
072
Green
纯绿
#008000
0,128,0
073
DarkGreen
深绿色
#006400
0,100,0
074
Chartreuse
查特酒绿
#7FFF00
127,255,0
075
LawnGreen
草坪绿
#7CFC00
124,252,0
076
GreenYellow
绿黄色
#ADFF2F
173,255,47
077
OliveDrab
橄榄土褐色
#556B2F
85,107,47
078
Beige
米色(浅褐色)
#6B8E23
107,142,35
079
LightGoldenrodYellow
浅秋麒麟黄
#FAFAD2
250,250,210
080
Ivory
象牙
#FFFFF0
255,255,240
081
LightYellow
浅黄色
#FFFFE0
255,255,224
082
Yellow
纯黄
#FFFF00
255,255,0
083
Olive
橄榄
#808000
128,128,0
084
DarkKhaki
深卡其布
#BDB76B
189,183,107
085
LemonChiffon
柠檬薄纱
#FFFACD
255,250,205
086
PaleGodenrod
灰秋麒麟
#EEE8AA
238,232,170
087
Khaki
卡其布
#F0E68C
240,230,140
088
Gold
金
#FFD700
255,215,0
089
Cornislk
玉米色
#FFF8DC
255,248,220
090
GoldEnrod
秋麒麟
#DAA520
218,165,32
091
FloralWhite
花的白色
#FFFAF0
255,250,240
092
OldLace
老饰带
#FDF5E6
253,245,230
093
Wheat
小麦色
#F5DEB3
245,222,179
094
Moccasin
鹿皮鞋
#FFE4B5
255,228,181
095
Orange
橙色
#FFA500
255,165,0
096
PapayaWhip
番木瓜
#FFEFD5
255,239,213
097
BlanchedAlmond
漂白的杏仁
#FFEBCD
255,235,205
098
NavajoWhite
Navajo白
#FFDEAD
255,222,173
099
AntiqueWhite
古代的白色
#FAEBD7
250,235,215
100
Tan
晒黑
#D2B48C
210,180,140
101
BrulyWood
结实的树
#DEB887
222,184,135
102
Bisque
乳脂,番茄等(浓汤)
#FFE4C4
255,228,196
103
DarkOrange
深橙色
#FF8C00
255,140,0
104
Linen
亚麻布
#FAF0E6
250,240,230
105
Peru
秘鲁
#CD853F
205,133,63
106
PeachPuff
桃色
#FFDAB9
255,218,185
107
SandyBrown
沙棕色
#F4A460
244,164,96
108
Chocolate
巧克力
#D2691E
210,105,30
109
SaddleBrown
马鞍棕色
#8B4513
139,69,19
110
SeaShell
海贝壳
#FFF5EE
255,245,238
111
Sienna
黄土赭色
#A0522D
160,82,45
112
LightSalmon
浅鲜肉(鲑鱼)色
#FFA07A
255,160,122
113
Coral
珊瑚
#FF7F50
255,127,80
114
OrangeRed
橙红色
#FF4500
255,69,0
115
DarkSalmon
深鲜肉(鲑鱼)色
#E9967A
233,150,122
116
Tomato
番茄
#FF6347
255,99,71
117
MistyRose
薄雾玫瑰
#FFE4E1
255,228,225
118
Salmon
鲜肉(鲑鱼)色
#FA8072
250,128,114
119
Snow
雪
#FFFAFA
255,250,250
120
LightCoral
淡珊瑚色
#F08080
240,128,128
121
RosyBrown
玫瑰棕色
#BC8F8F
188,143,143
122
IndianRed
印度红
#CD5C5C
205,92,92
123
Red
纯红
#FF0000
255,0,0
124
Brown
棕色
#A52A2A
165,42,42
125
FireBrick
耐火砖
#B22222
178,34,34
126
DarkRed
深红色
#8B0000
139,0,0
127
Maroon
栗色
#800000
128,0,0
128
White
纯白
#FFFFFF
255,255,255
129
WhiteSmoke
白烟
#F5F5F5
245,245,245
130
Gainsboro
Gainsboro
#DCDCDC
220,220,220
131
LightGrey
浅灰色
#D3D3D3
211,211,211
132
Silver
银白色
#C0C0C0
192,192,192
133
DarkGray
深灰色
#A9A9A9
169,169,169
134
Gray
灰色
#808080
128,128,128
135
DimGray
暗淡的灰色
#696969
105,105,105
136
Black
纯黑
#000000
0,0,0
//洛阳翼展电脑牛魔王指针优化版,副图20171130V1.1调整了颜色
2017-11-30 乱云飞 代码 评论(0) 浏览(1377) 标签: 同花顺公式 牛魔王指针
//洛阳翼展电脑牛魔王指针优化版,副图20171130V1.1调整了颜色//蓝色:【卖出信号】
//红色:【买入信号】
//白色:【极度虚弱赌反弹风险高】
//黄色:【虚弱赌反弹准确率高】
//绿虚:【卖出信号,上方圆圈越多信号越强烈】
//黄虚:【买入信号】
//红虚:【买入信号加强】