Asp.Net动态生成验证码实例

<script type="text/javascript"> </script> <script src="/WebResource.axd?d=JzUBNW6u047BJpbOAC3pmQ2&t=632962731030312500" type="text/javascript"></script> <script src="/WebResource.axd?d=mv490Pb8dbBt-6r33t9KqlhF9e5Cco_M-SKcqprSJ0o1&t=632962731030312500" type="text/javascript"></script> <script language="javascript" src="/CuteSoft_Client/CuteEditor/CuteEditorconstants.js" type="text/javascript"></script> <script language="javascript" src="/CuteSoft_Client/CuteEditor/WinIE.js" type="text/javascript"></script> <script language="javascript" src="/CuteSoft_Client/CuteEditor/WinIE.Menu.js" type="text/javascript"></script> <script type="text/javascript"> </script>
Asp.Net动态生成验证码实例

时间:2006-8-19 19:28:33      阅读:1432     附件: Asp.Net动态生成验证码实例.rar (经验值:5)     下载:8
        最近因为本站的留言本和发表评论不断出现有些人在恶意发表信息,所以做了一个生成验证码生成图片的功能,现拿出来和大家共享(做了几种方法,大家可取自己所要的代码即可)。

        首先用VS2005建立一个ImgCheckCode.aspx文件,ImgCheckCode.aspx文件内空只要第一句就OK,下面的可以删除,来看ImgCheckCode.aspx.vb文件的内容:
Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Drawing.Drawing2D

Partial Class ImgCheckCode
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

'ImgCheck1() '图片验证码1

'draw2(getNum.ToString)'图片验证码2

'GenImg(GenCode(4)) '图片验证码3

CreateCheckCodeImage(GenCode(
4)) '图片验证码3(增加背景噪音线、前景噪音点)

End Sub


#Region " 图片验证码1 "

Sub ImgCheck1()
'生成随机生成器
Dim random As Random = New Random()

Dim validateNum As String = ""
Dim s As String = "0123456789"

Dim i As Integer
For i = 0 To 4 - 1 Step i + 1
validateNum
+= s(random.Next(s.Length))
Next

HttpContext.Current.Session(
"Code") = validateNum
Dim image As Bitmap = New Bitmap(CType(Math.Ceiling(validateNum.Length * 12.5), Integer), 18)
Dim g As Graphics = Graphics.FromImage(image)
Try
'清空图片背景色
g.Clear(Color.White)

Dim font As Font = New Font("Arial", 10, (FontStyle.Bold))
Dim brush As LinearGradientBrush = New LinearGradientBrush(New Rectangle(0, 0, image.Width, image.Height), Color.OrangeRed, Color.OrangeRed, 1.2F, True)
g.DrawString(validateNum, font, brush, random.Next(
1) + 1, random.Next(1) + 1)
'画图片的边框线
g.DrawRectangle(New Pen(Color.Silver), 0, 0, image.Width - 1, image.Height - 1)
'保存图片数据
Dim stream As IO.MemoryStream = New IO.MemoryStream()
image.Save(stream, ImageFormat.Jpeg)
'输出图片
Response.Clear()
Response.ContentType
= "image/jpeg"
Response.BinaryWrite(stream.ToArray())
Finally
g.Dispose()
image.Dispose()
End Try
End Sub


#End Region


#Region " 图片验证码2 "

Private Function getNum() As Int64
Dim zNum As Int64

Randomize(Timer)
zNum
= CInt(8999 * Rnd() + 1000)
Session(
"Code") = zNum
Return zNum
End Function


Private Sub draw()
Response.ContentType
= "image/jpeg"
Dim width As Int32
Dim height As Int32
width
= 300
height
= 300
Dim x, y As Int16
x
= 30
y
= 50
Dim zNum
Randomize(Timer)
zNum
= CInt(8999 * Rnd() + 1000)
Session(
"Code") = zNum

Dim objBitmap As Bitmap
objBitmap
= New Bitmap(width, height)

Dim objGraphics As Graphics
objGraphics
= Graphics.FromImage(objBitmap)

objGraphics.DrawRectangle(
New Pen(Color.Black), 0, 0, width, height)
objGraphics.FillRectangle(
New SolidBrush(Color.White), 1, 1, width - 2, height - 2)

Dim objBrush As New SolidBrush(Color.Blue)
objGraphics.SmoothingMode
= SmoothingMode.AntiAlias
objBitmap.Save(Response.OutputStream, ImageFormat.Jpeg)
objGraphics.Dispose()
objBitmap.Dispose()
End Sub


Private Sub draw2(ByVal str As String)
Dim image As New Bitmap(600, 200)
Dim axesfont As New Font("arial", 90, FontStyle.Bold)

Dim blackbrush As New SolidBrush(Color.SteelBlue)
Dim redpen As New Pen(Color.Red, 5)
Dim blackpen As New Pen(Color.Black, 2)
Dim g As Graphics

g
= Graphics.FromImage(image)
g.Clear(Color.White)
g.FillRectangle(
New SolidBrush(Color.White), 0, 0, 600, 200)
g.DrawString(
str, axesfont, blackbrush, 10, 10)
image.Save(Response.OutputStream, ImageFormat.Jpeg)

End Sub


Function NumCode()
Response.Expires
= -1
Response.AddHeader(
"Pragma", "no-cache")
Response.AddHeader(
"cache-ctrol", "no-cache")
On Error Resume Next
Dim zNum, i, j
Dim Ados, Ados1
Randomize(Timer)
zNum
= CInt(8999 * Rnd() + 1000)
Session(
"Code") = zNum
Dim zimg(4), NStr
NStr
= CStr(zNum)
For i = 0 To 3
zimg(i)
= CInt(Mid(NStr, i + 1, 1))
Next
Dim Pos
Ados
= Server.CreateObject("Adodb.Stream")
Ados.Mode
= 3
Ados.Type
= 1
Ados.Open()
Ados1
= Server.CreateObject("Adodb.Stream")
Ados1.Mode
= 3
Ados1.Type
= 1
Ados1.Open()
Ados.LoadFromFile(Server.MapPath(
"body.Fix"))
Ados1.write(Ados.read(
1280))
For i = 0 To 3
Ados.Position
= (9 - zimg(i)) * 320
Ados1.Position
= i * 320
Ados1.write(Ados.read(
320))
Next
Ados.LoadFromFile(Server.MapPath(
"head.fix"))

Pos
= System.Text.Encoding.Default.GetBytes(Ados.read()).Length()

Ados.Position
= Pos
For i = 0 To 9 Step 1
For j = 0 To 3
Ados1.Position
= i * 32 + j * 320
Ados.Position
= Pos + 30 * j + i * 120
Ados.write(Ados1.read(
30))
Next
Next
Response.ContentType
= "image/BMP"
Ados.Position
= 0
Response.BinaryWrite(Ados.read())
Ados.Close() : Ados
= Nothing
Ados1.Close() : Ados1
= Nothing
If Err.Description <> "" Then Session("Code") = 9999

Return Session("Code")
End Function


#End Region


#Region " 图片验证码3 "

'产生随机字符串
Private Function GenCode(ByVal num As Integer) As String
Dim [source] As String() = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"}
Dim code As String = ""
Dim rd As Random = New Random()
Dim i As Integer
For i = 0 To num - 1 Step i + 1
code
+= source(rd.Next(0, source.Length))
Next
Return code
End Function


'生成图片
Private Sub GenImg(ByVal code As String)
Dim myPalette As Bitmap = New Bitmap(60, 18) '定义一个画板

Dim gh As Graphics = Graphics.FromImage(myPalette) '在画板上定义绘图的实例

Dim rc As Rectangle = New Rectangle(0, 0, 60, 18) '定义一个矩形

gh.FillRectangle(
New SolidBrush(Color.DarkSeaGreen), rc) '填充矩形
gh.DrawString(code, New Font("Arial", 12), New SolidBrush(Color.White), rc) '在矩形内画出字符串

myPalette.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg)
'将图片显示出来

Session(
"Code") = code '将字符串保存到Session中,以便需要时进行验证

gh.Dispose()
myPalette.Dispose()
End Sub


'生成图片(增加背景噪音线、前景噪音点)
Private Sub CreateCheckCodeImage(ByVal checkCode As String)
If checkCode = Nothing Or checkCode.Trim() = String.Empty Then
Return
End If

Session(
"Code") = checkCode '将字符串保存到Session中,以便需要时进行验证

Dim image As System.Drawing.Bitmap = New System.Drawing.Bitmap(CType(Math.Ceiling((checkCode.Length * 12.5)), Integer), 22)
Dim g As Graphics = Graphics.FromImage(image)

Try
'生成随机生成器
Dim random As Random = New Random()

'清空图片背景色
g.Clear(Color.White)

'画图片的背景噪音线
Dim i As Integer
For i = 0 To 25 - 1 Step i + 1
Dim x1 As Integer = random.Next(image.Width)
Dim x2 As Integer = random.Next(image.Width)
Dim y1 As Integer = random.Next(image.Height)
Dim y2 As Integer = random.Next(image.Height)

g.DrawLine(
New Pen(Color.Silver), x1, y1, x2, y2)
Next

Dim font As Font = New System.Drawing.Font("Arial", 12, (System.Drawing.FontStyle.Bold))
Dim brush As System.Drawing.Drawing2D.LinearGradientBrush = New System.Drawing.Drawing2D.LinearGradientBrush(New Rectangle(0, 0, image.Width, image.Height), Color.Blue, Color.DarkRed, 1.2F, True)
g.DrawString(checkCode, font, brush,
2, 2)

'画图片的前景噪音点
Dim j As Integer
For j = 0 To 100 - 1 Step j + 1
Dim x As Integer = random.Next(image.Width)
Dim y As Integer = random.Next(image.Height)

image.SetPixel(x, y, Color.FromArgb(random.Next()))
Next

'画图片的边框线
g.DrawRectangle(New Pen(Color.Silver), 0, 0, image.Width - 1, image.Height - 1)

Dim ms As System.IO.MemoryStream = New System.IO.MemoryStream()
image.Save(ms, System.Drawing.Imaging.ImageFormat.Gif)
Response.ClearContent()
Response.ContentType
= "image/Gif"
Response.BinaryWrite(ms.ToArray())
Finally
g.Dispose()
image.Dispose()
End Try
End Sub


#End Region


End Class

 这里俺就使用了第三种方法的第一种( 增加背景噪音线、前景噪音点),如你想用前面的几种可以把Page_Load中的后三名屏蔽它就OK咯,然后在你想要放验证码的页面中插入以下代码即可:
< asp:Image id ="ImgCode" runat ="server" ImageUrl ="ImgCheckCode.aspx" />
简单吧,嘻嘻,快试试吧。 (再附上一种C#的方法让大家下载吧,见附件)
评论
  • Re:Asp.Net动态生成验证码实例  (2006-8-20 15:22:21) by 飘萍 
        不错,学习。谢谢!
  • Re:Asp.Net动态生成验证码实例  (2006-8-30 22:31:36) by 123123 
    good
  • Re:Asp.Net动态生成验证码实例  (2006-9-6 0:24:53) by williamyu 
    收藏了!
  • Re:Asp.Net动态生成验证码实例  (2006-9-13 17:31:36) by 李非果 
    好的收了
  • Re:Asp.Net动态生成验证码实例  (2006-9-20 20:11:05) by aking 
    good,very thank you
  • Re:Asp.Net动态生成验证码实例  (2006-10-16 0:35:34) by stardotcom 
    好东西
标 题:

姓 名:

主 页:

验证码:

评论:
href="/CuteSoft_Client/CuteEditor/Themes/Office2003/style.css.aspx?EditorID=CE_Editor1_ID" rel="stylesheet" />


  •  6
  • Verdana 6
  • 字号 6
段落
推进 6
class="CuteEditorFrame CuteEditorFrame" id="CE_Editor1_ID_Frame" style="BORDER-RIGHT: #dddddd 1px solid; BORDER-TOP: #dddddd 1px solid; BORDER-LEFT: #dddddd 1px solid; WIDTH: 100%; BORDER-BOTTOM: #dddddd 1px solid; HEIGHT: 100%; BACKGROUND-COLOR: white" src="/CuteSoft_Client/CuteEditor/Template.aspx?Referrer=http%3a%2f%2fwww.web3.cn%2fshownews.aspx%3fyear%3d2006%26month%3d8%26day%3d19%26id%3d166" frameborder="0">
<script language="javascript" type="text/javascript"> var CE_Editor1_IDSettingClass_Strings={ "_setting_":"b230001f","culture":"zh-CN","filespath":"/CuteSoft_Client/CuteEditor","renderrichdropdown":"True","themetype":"Office2003","securitypolicyfile":"/CuteSoft_Client/CuteEditor/Configuration/Security/default.config","autoconfigure":"None","configurationpath":"D:/www/www_web3_cn/web3.cn/CuteSoft_Client/CuteEditor/Configuration/Clients_Set.config","_culture_":"zh-CN","_cuteeditorresource_":"/CuteSoft_Client/CuteEditor/","_cuteeditorversion_":"5.0.0.0","taglist":"Tags","style":"Style","verbs":"Verbs","image":"Image","document":"Document","flash":"Flash","media":"Media","imagebrowsing":"Browse Images","template":"Template","horrule":"Horizontal Line","linebreak":"Line Break","advanced":"Advanced","textbox":"TextBox","groupbox":"GroupBox","orderedlist":"Ordered List","unorderedlist":"Unordered List","select":"Select","tabledropdown":"插入/修改表格","deleterow":"删除行","deletecolumn":"删除列","insertcell":"插入单元格","deletecell":"删除单元格","mergecell":"合并单元格","splitcell":"拆分单元格","resetcells":"Reset Cells","tableproperties":"表格属性","tableborder":"边框","tablerules":"Table Rules","insertrowtop":"Insert Row Above","insertrowbottom":"Insert Row Below","insertcolumnleft":"Insert Column to the Left","insertcolumnright":"Insert Column to the Right","mergeright":"Merge cells right","mergebottom":"Merge cells down","horsplitcell":"Split cells right","versplitcell":"Split cells down","typetexthere":"Type text here","autosizing":"Auto Sizing","rows":"行数","columns":"列数","tableattribute":"表格属性","cellpadding":"单元垫充","cellspacing":"单元间隔","rules":"Rules","collapseborder":"Collapse table border","draw table":"Draw Table","table wizard":"Table Wizard","table designer":"Table Designer","table layout":"Table layout","summary":"Summary","thead":"Thead","tfoot":"Tfoot","tr":"TR","td":"TD","changetoth":"Change to header cell","changetotd":"Change to table cell","editrow":"行属性","editcell":"单元属性","normal":"普通","menulist":"菜单列表","heading 1":"标题 1","heading 2":"标题 2","heading 3":"标题 3","heading 4":"标题 4","heading 5":"标题 5","heading 6":"标题 6","address":"地址","formatted":"已编排格式","definition term":"Definition Term","save":"保存","new":"新文件","print":"打印","cut":"裁减","copy":"拷贝","paste":"粘贴","pastetext":"纯文本粘贴","pasteword":"Word格式粘贴","delete":"删除","undo":"撤消","redo":"恢复","selectall":"全选","toggleborder":"设置可见边框","absoluteposition":"设置绝对位置","inserthorizontalrule":"插入水平线","insertlink":"插入超链接","link":"Link","insertanchor":"Insert Anchor","unlink":"撤消超链接","insertdocument":"可下载的文件","insertchars":"插入特殊字符","chars":"Symbols","insertemotion":"插入表情","inserttext":"插入, 编辑, 或改变位置文本地区","insertimage":"插入图片","imagegallerybybrowsing":"Insert Image","insertflash":"插入Flash","insertmedia":"Insert Media","bringforward":"上移一层","bringbackward":"下移一层","bold":"粗体","italic":"斜体","underline":"下划线","justifyleft":"向左对齐","justifycenter":"向中对齐","justifyright":"向右对齐","forecolor":"字体颜色","setforecolor":"设置字体颜色","backcolor":"高亮颜色","setbackcolor":"设置高亮颜色","automatic":"Automatic","morecolors":"More Colors...","insertorderedlist":"编号列表","insertunorderedlist":"列表项","indent":"缩进","outdent":"取消缩进","subscript":"下标文本","superscript":"上标文本","strikethrough":"删除线","removeformat":"去除格式","cleancode":"代码清洁","selectnone":"全不选","justifynone":"取消对齐","justifyfull":"全对齐","insertdate":"插入今天的日期","inserttime":"插入当前的时间","help":"帮助","paragraph":"段落","insertparagraph":"段落","fontname":"字体","fontsize":"字号","zoom":"推进","cssclass":"Css Class","cssstyle":"Inline 样式","links":"链接","codes":"代码片断","tofullpage":"Fit to Window","fromfullpage":"Restore down","imagesdropdown":"图片","documentpropertypage":"Page Properties","html":"代码","preview":"预览状态","enlarge":"Enlarge the editing window","decrease":"Decrease the editing window","insertform":"Form","insertinputtext":"Textbox","inserttextbox":"Text Area","insertlistbox":"ListBox","insertdropdown":"Drop Down Textbox","insertradiobox":"Radio Button","insertcheckbox":"Checkbox","insertinputimage":"Image Button","insertinputsubmit":"Submit Button","insertinputreset":"Reset Button","insertinputpassword":"Password Field","insertinputhidden":"Hidden","insertinputbutton":"Button","input":"Input","general":"General","value":"Value","src":"Src","gridlayoutpanel":"Grid Layout Panel","ucase":"Upper case","lcase":"Lower case","break":"Break","update":"Update","items":"Items","stylebuilder":"Style Builder","capitalization":"Capitalization","uppercase":"UPPER CASE","lowercase":"lowercase","initialcap":"Initial Cap","systemfont":"System font","caption":"Caption","icon":"Icon labels","menu":"Menu text","smallcaption":"Small caption","statusbar":"Status bar","messagebox":"Messagebox","fontfamily":"Font Family","decoration":"Decoration","overline":"Overline","or":" or ","letters":"Letters","textflow":"Text flow","indentation":"Indentation","textdirection":"Text direction","ltr":"Left to right","rtl":"Right to left","writingmode":"Writing mode","lr-tb":"horizontal text ","tb-rl":"vertical text","text-align":"Text-align","justification":"Justification","backgroundimage":"Background image","tiling":"Tiling","tilingboth":"Tile in both direction","tilingorizontal":"Tile in horizontal direction","tilingvertical":"Tile in vertical direction","notiling":"Do not tile","scrolling":"Scrolling","scrollingbackground":"Scrolling background","scrollingfixed":"Fixed background","position":"Position","margin":"Margin","padding":"Padding","medium":"Medium","low":"Low","high":"High","thin":"Thin","thick":"Thick","absolute":"Absolute","relative":"Relative","block":"block","clipping":"Clipping","misc":"Misc","overflow":"Overflow","overflowauto":"Use scrollbars if needed","overflowscroll":"Always Use scrollbars","overflowvisible":"Contet is not clipped","overflowhidden":"Contet is clipped","printingbefore":"Page-break-before","printingafter":"Page-break-after","auto":"Auto","always":"Always","default":"Default","move":"Move","areyousuretodiscardchanges":"Your changes will be discarded.","none":"None","checked":"Checked","codeeditor":"View/Edit Source","id":"ID","listbox":"ListBox","imagemap":"Add image map","selecttocreateimagemap":"Please select an image to create an image map","addlinktoimagemap":"Add a hyperlink to this hot spot","addhotspot":"Add hot spots","universalkeyboard":"Universal Keyboard","insertpagebreak":"Insert Print Page Break","blockdirltr":"Direction left to right","blockdirrtl":"Direction right to left","shade":"Shade","usectrl_c":"Use Ctrl+C","usectrl_v":"Use Ctrl+V","usectrl_x":"Use Ctrl+X","useapple_c":"Use Apple+C","useapple_v":"Use Apple+V","useapple_x":"Use Apple+X","finishedsearch":"Cute Editor has finished searching the document.","insertlayer":"Insert Layer","boxformatting":"Box Formatting","newtemplate":"Make Template","pleaseselectregion":"Please select a region","templatecreatedsuccessfully":"Template created successfully!","filewithnameexist":"A file with a name same as the target already exists!","keeplinebreaks":"Keep linebreaks","usectrl_vtopaste":"Use CTRL+V on your keyboard to paste the text into the window.","cleanupbox":"Clean Up Box","action":"Action","method":"Method","validnumber":"Please enter a valid number.","validcolor":"Please enter a correct color value.","notaailableinsafari":"This feature is not available in Safari.","selectimagetoinsert":"Please choose an image to insert","createddate":"Date Created","modifieddate":"Date Modified","next":"Next","total":"Total","images":"Images","name":"Name","notset":"Not Set","center":"Center","attributes":"Attributes","newwindow":"New window","parentwindow":"Parent window","samewindow":"Same window","topmostwindow":"Topmost window","bordercolorlight":"Border color light","bordercolordark":"Border color dark","autostart":"AutoStart","showcontrols":"ShowControls","showstatusbar":"ShowStatusBar","edit":"编辑","rename":"Rename","formatting":"Formatting","table":"Table","inserttable":"Table","justify":"Justify","font":"Font","text":"Text","background":"Background","border":"Border","borders":"Borders","list":"List","other":"Other","cursor":"Cursor","filter":"Filter","demo":"Demo","demotext":"Sample Text","color":"Color","url":"Url","display":"Display","float":"Float","floatleft":"Left","floatright":"Right","floatnone":"None","clear":"Clear","clearleft":"Left","clearright":"Right","clearnone":"None","clearboth":"Both","cancel":"取消","properties":"属性","width":"宽度","height":"高度","transparency":"透明度","quality":"质量","upload":"上传","insert":"插入","layout":"布局","alignment":"对准","border_thickness":"Border Thickness","border_color":"边框颜色","spacing":"间隔","horizontal":"水平","vertical":"垂直","alternate":"替换文本","longdesc":"Long description","hyperlink_information":"超链接信息","title":"标题","target":"目标","link_color":"超链接颜色","pixels":"像点","percent":"百分","left":"向左对齐","right":"向右对齐","texttop":"Texttop","absmiddle":"Absmiddle","baseline":"Baseline","absbottom":"Absbottom","bottom":"Bottom","middle":"Middle","top":"Top","bordersize":"边框大小","backgroundcolor":"背景颜色","bordercolor":"边框颜色","ok":"OK","inserttemplate":"插入样板","description":"描写","keywords":"Keywords","htmlbase":"Base location","type":"Type","size":"Size","all":"All","send":"Send","netspell":"Spell Check","uploadresult":"This was stored as file","uploadsuccessfully":"File uploaded successfully!","fileformatnotsupported":"Cannot upload the file. The File format is not supported.","nopermission":"Forbidden. You don't have permission to access this function.","unablerename":"Unable to rename this item.","unablecreatefolder":"Unable to create the folder.","unablecopyfile":"Unable to copy files.","unablemovefile":"Unable to move files.","unabledeletefile":"Unable to delete files.","unableuploadfile":"Unable to upload file.","specifynewfoldername":"Please specify the new folder name.","specifynewfilename":"Please specify the new file name.","areyousuredelete":"Do you want to delete the selected folder(s) and/or file(s)?","deletefiles":"Delete the selected files/directories","copymoveto":"Type the relative destination path:","createdirectory":"Create a new directory","copyfiles":"Copy the selected files/directories","movefiles":"Move the selected files/directories","refresh":"Refresh","zoomin":"Zoom In","zoomout":"Zoom Out","bestfit":"Best Fit","actualsize":"Actual Size","common":"General","browse":"Browse..","count":"Count","find":"Find and Replace","find what":"Find what","replace with":"Replace with","match case":"Match case","match whole word":"Match whole word only","find next":"Find Next","replace":"Replace","replace all":"Replace All","insertfieldset":"Insert groupbox","onlywebcolor":"Only web colors","editinnewwindow":"Edit In New Window","edithtml":"Edit HTML","outereditor":"Outer Editor","finish":"Finish","removenode":"Delete Tag","deletenode":"Delete All","itisslowthatswitchtocode":"You are loading a big page which will cause Internet Explorer to run slowly when switching to the HTML view.","removewordtags":"Do you want to clean the code before pasting from Word?","topmargin":"Top Margin","bottommargin":"Bottom Margin","leftmargin":"Left Margin","rightmargin":"Right Margin","marginwidth":"Margin Width","marginheight":"Margin Height","pagelanguage":"Page Language","htmlencoding":"HTML Encoding","boldimage":"bold.gif","previewimage":"preview.gif","designimage":"design.gif","htmlimage":"htmlview.gif","underimage":"under.gif","imageeditor":"Online image editor","selectimagetoedit":"Please choose an image to edit","invalidfilename":"A filename cannot contain any of the following characters","selectfile":"Please select a file","newgraphic":"New Graphic","rotate":"Rotate","resizeto":"Resize to","angle":"Angle","saveas":"Save as","crop":"Crop","resize":"Resize","rotateleft90":"Rotate Left 90","rotateright90":"Rotate Right 90","filphorizontal":"flip horizontally","filpvertical":"flip vertically","reload":"Reload","drawline":"Draw a line","pen":"Pen","erase":"Erase","drawrectangle":"Draw a rectangle","drawellipse":"Draw an ellipse","drawtransparentrectangle":"Draw a transparent rectangle","drawtransparentellipse":"Draw a transparent ellipse","under":"Underline","drag-and-drop":"Drag and drop image onto panel","selectfiledialogoption":"status:0;help:0;resizable:0;dialogWidth:560px;dialogHeight:550px;","insertrow":"插入行","insertcolumn":"插入列","externalimage":"插入图片" }; function CE_Editor1_IDSettingClass() { } CE_Editor1_IDSettingClass.prototype.GetSettingHash=function() { return 'b230001f'; }; CE_Editor1_IDSettingClass.prototype.GetSettingHash=function() { return 'b230001f'; }; CE_Editor1_IDSettingClass.prototype.GetCulture=function() { return 'zh-CN'; }; CE_Editor1_IDSettingClass.prototype.GetResourcePath=function() { return '/CuteSoft_Client/CuteEditor/'; }; CE_Editor1_IDSettingClass.prototype.GetDNNArg=function() { var temp = '{DNN_Arg}'; return (temp.indexOf('=')==-1? '':'&{DNN_Arg}'); }; CE_Editor1_IDSettingClass.prototype.GetString=function(name) { if(name==null)return null; var val=CE_Editor1_IDSettingClass_Strings[name.toLowerCase()]; if(val) return val; return '('+name+')'; }; new CuteEditorClientClass('CE_Editor1_ID',new CE_Editor1_IDSettingClass()); </script>

Because of the cache,you may see your comments several minutes later.

<script type="text/javascript"> </script> <script type="text/javascript"> </script>
<script type="text/javascript"> </script>
 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值