WEB开发网
开发学院CMS教程dvbbs 动网论坛教程:验证码出现的问题及解决方法 阅读

动网论坛教程:验证码出现的问题及解决方法

 2010-06-04 19:02:45 来源:WEB开发网   
核心提示: CDGen_SetDirection -(Rnd * 20 - 10)CDGen_FowardDraw 1CDGen_MoveToMiddle 0, 50CDGen_SetDirection -60CDGen_FowardDraw 0.6CD

CDGen_SetDirection -(Rnd * 20 - 10)

CDGen_FowardDraw 1

CDGen_MoveToMiddle 0, 50

CDGen_SetDirection -60

CDGen_FowardDraw 0.6

CDGen_MoveToMiddle 0, 50

CDGen_SetDirection -60

CDGen_FowardDraw 0.6

Case "L"

CDGen_SetDirection -90

CDGen_FowardDraw 0.2

CDGen_MoveToMiddle 0, 50

CDGen_SetDirectionFormZero -(Rnd * 20 - 10)

CDGen_FowardDraw 1

CDGen_SetDirection -(110 - Rnd * 40)

CDGen_FowardDraw 0.8

CDGen_SetDirectionFormZero 0

CDGen_FowardDraw -0.3

Case "M"

CDGen_SetDirection 0

CDGen_FowardDraw -1

CDGen_SetDirection -30

CDGen_FowardDraw 0.5

CDGen_SetDirection 60

CDGen_FowardDraw -0.5

CDGen_SetDirection -30

CDGen_FowardDraw 1

Case "N"

CDGen_SetDirection 0

CDGen_FowardDraw -1

CDGen_SetDirection -45

CDGen_FowardDraw 1.4

CDGen_SetDirection 45

CDGen_FowardDraw -1

Case "O"

CDGen_SetDirection -60

CDGen_FowardDraw -0.7

CDGen_SetDirection -60

CDGen_FowardDraw -0.7

CDGen_SetDirection 120

CDGen_FowardDraw 1.5

CDGen_SetDirection -60

CDGen_FowardDraw 0.7

CDGen_SetDirection -60

CDGen_FowardDraw 0.7

CDGen_Close 0

Case "P"

CDGen_SetDirection 0

CDGen_FowardDraw -1

CDGen_SetDirection -60

CDGen_FowardDraw 0.5

CDGen_SetDirection 60

CDGen_FowardDraw 0.5

CDGen_CloseToMiddle 0, 50

Case "Q"

CDGen_SetDirection -60

CDGen_FowardDraw -0.7

CDGen_SetDirection -60

CDGen_FowardDraw -0.7

CDGen_SetDirection 120

CDGen_FowardDraw 1.5

CDGen_SetDirection -60

CDGen_FowardDraw 0.7

CDGen_SetDirection -60

CDGen_FowardDraw 0.7

CDGen_Close 0

CDGen_MoveToMiddle 4, 100

CDGen_SetDirectionFormZero -45

CDGen_FowardDraw 0.7

CDGen_MoveToMiddle 4, 100

CDGen_SetDirection 180

CDGen_FowardDraw 0.7

Case "R"

CDGen_SetDirection 0

CDGen_FowardDraw -1

CDGen_SetDirection -80

CDGen_FowardDraw 0.5

CDGen_SetDirection 60

CDGen_FowardDraw 0.5

CDGen_CloseToMiddle 0, 50

CDGen_SetDirectionFormZero -45

CDGen_FowardDraw 0.7

Case "S"

CDGen_SetDirection -45

CDGen_FowardDraw -0.5

CDGen_SetDirection -90

CDGen_FowardDraw -0.5

CDGen_SetDirection 90

CDGen_FowardDraw 1

CDGen_SetDirection 90

CDGen_FowardDraw 0.5

CDGen_SetDirection 90

CDGen_FowardDraw 0.5

Case "T"

CDGen_SetDirection -90

CDGen_FowardDraw 0.8

CDGen_MoveToMiddle 0, 50

CDGen_SetDirection 90

CDGen_FowardDraw 1

CDGen_MoveToMiddle 0, 0

CDGen_SetDirection 30

CDGen_FowardDraw 0.5

CDGen_MoveToMiddle 0, 100

CDGen_SetDirection -60

CDGen_FowardDraw 0.5

Case "U"

CDGen_FowardDraw 1

CDGen_SetDirection -60

CDGen_FowardDraw 0.6

CDGen_SetDirection -60

CDGen_FowardDraw 0.6

CDGen_SetDirection -60

CDGen_FowardDraw 1

Case "V"

CDGen_SetDirection -30

CDGen_FowardDraw 1.5

CDGen_SetDirection 60

CDGen_FowardDraw -1.5

Case "W"

CDGen_SetDirection -30

CDGen_FowardDraw 1.5

CDGen_SetDirection 60

CDGen_FowardDraw -1

CDGen_SetDirection -60

CDGen_FowardDraw 1

CDGen_SetDirection 60

CDGen_FowardDraw -1.5

Case "X"

CDGen_SetDirection -45

CDGen_FowardDraw 1.4

CDGen_MoveToMiddle 0, 50

CDGen_SetDirection 90

CDGen_FowardDraw 0.7

CDGen_MoveToMiddle 0, 50

CDGen_FowardDraw -0.7

Case "Y"

CDGen_SetDirection -30

CDGen_FowardDraw 0.5

CDGen_SetDirection 60

CDGen_FowardDraw -0.5

CDGen_MoveToMiddle 0, 100

CDGen_SetDirection -30

CDGen_FowardDraw 0.5

Case "Z"

CDGen_SetDirection -90

CDGen_FowardDraw 1

CDGen_SetDirection -45

CDGen_FowardDraw -1.4

CDGen_SetDirection 45

CDGen_FowardDraw 1

3、动网BBS8.0验证码看不清楚的修改方法

用记事本打开Dv_GetCode.asp文件,把上面几行的个别数值修改为(红色为修改后的,其他的不变):

Const nMaxSaturation = 100 ' 最大色彩饱和度

Const nBlankNoisyDotOdds = 0 ' 空白处噪点率

Const nColorNoisyDotOdds = 0 ' 有色处噪点率

Const nCharCount = 4 ' 产生的字符个数

Const nPixelWidth = 20 ' 单个字符位图的宽度

Const nPixelHeight = 20 ' 单个字符位图的高度

Const nColorHue = 220 ' 显示验证码的色调(-1表示随机色调, -2表示灰度色调)

Const nAngleRandom = 0 ' 角度随机量

Const nLengthRandom = 0 ' 长度随机量(百分比)

希望对你有用!

上一页  1 2 

Tags:论坛 教程 验证

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接