' Const_domain_name for the domain name and don't put the slash in the end
Const Const_domain_name= "http://localhost"
%>
'------------------------------------------------display subdirectories and files under the current directory
Sub List
Dim FSO, F, F1, FC, S
Set fso = CreateObject ("Scripting.FileSystemObject")
Set f = fso. GetFolder (server. MapPath ("."))
Set Fs=f.subfolders
Set FC =f.files
For all
JSP Tutorial Verification Code code
Color getrandcolor (int fc,int BC) {//random color for a given rangeRandom random = new random ();if (fc>255) fc=255;if (bc>255) bc=255;int R=fc+random.nextint (BC-FC);int G=fc+random.nextin
js| Program | random
Color getrandcolor (int fc,int BC) {//random color for a given rangeRandom Random = new Random ();if (fc>255) fc=255;if (bc>255) bc=255;int R=fc+random.nextint (BC-FC);int G=fc+random.nextint (BC-
js| Chinese Characters | graphics | Verification code
Create by Smallnest
Email:smallnest@gmail.com
Website:www.kuaff.com
Generate Random Colors
Color Getrandcolor (Random Random, int FC, int BC) {
if (FC > 255) FC = 255;
if (BC > 255) BC = 255;
int r = FC + Random.nextint (BC-
IIS ' Const_domain_name for the domain name and don't put the slash in the end
Const Const_domain_name= "http://localhost"
%>
'------------------------------------------------display subdirectories and files under the current directory
Sub List
Dim FSO, F, F1, FC, S
Set fso = CreateObject ("Scripting.FileSystemObject")
Set f = fso. GetFolder (server. MapPath ("."))
Set Fs=f.subfolders
Set FC =f.files
For
Color getrandcolor (int fc,int BC) {//random color for a given range
Random Random = new Random ();
if (fc>255) fc=255;
if (bc>255) bc=255;
int R=fc+random.nextint (BC-FC);
int G=fc+random.nextint (BC-
its inception, with different technology and transmission speeds.The full name of SATA is serial advanced technology Attachment both serial ATASerial ATA 1.0 defines a data transfer rate of up to 150mb/sec,This is higher than the current fastest parallel ATA (i.e. ata/133) can achieve the highest data transfer rate of 133mb/sec,The Serial ATA 2.0 has a theoretical transfer rate of 3.0Gbps actually reaching 300mb/sec,The final Serial ATA 3.0 theoretical value is 6Gbps (750mb/s) the highest data
CheckNum. jspCopy codeThe Code is as follows:String path = request. getContextPath ();String basePath = request. getScheme () + ": //" + request. getServerName () + ":" + request. getServerPort () + path + "/";%>Color getRandColor (int fc, int bc) // random Color selection within a given range{Random random = new Random ();If (fc> 255) fc = 255;If (bc> 255) bc =
gallerygoogle.apk
Gallery 4.1.1 includes camera (do not delete, very powerful, very useful)
geniewidget.apk
geniewidget.apk
News and weather (can be deleted, useless things)
gmail.apk
gmail.apk
Google mailbox (can be deleted, no use of Google mailbox can be deleted, anyway I deleted)
gmscore.apk
Google Play service (4.1.1 New, can be deleted, no Google Play can be deleted)
go
random = new random (); private string randstring = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";//randomly generated string private int width = 80;//picture width private int height = 26;//picture high private int linesize = 40;//number of interference lines private int stringnum = 4;//randomly generated characters/* * Get fonts */ Private Font GetFont () {return new font ("Fixedsys", font.center_baseline,18); }/* * Get color */Private color getrandcolor (int
// The following code is placed on the JSP server to generate a Random Digital Image verification code.
Color getrandcolor (int fc, int BC){Random random = new random ();If (FC> 255) fc = 255;If (BC> 255) BC = 255;Int r = FC + random. nextint (BC-Fc );Int G =
Image. jsp
Color getrandcolor (int fc, int BC ){Random random = new random ();If (FC> 255) fc = 255;If (BC> 255) BC = 255;Int r = FC + random. nextint (BC-Fc );Int G = FC + random. nextint (BC-
authentication code to the imageG. setcolor (new color (20 + random. nextint (110), 20 + random. nextint (110), 20 + random. nextint (110 )));// The Color of the called function is the same. It may be because the seed is too close and can only be directly generated.G. drawstring (RAND, 13 * I + 6, 16 );}
// The image takes effectG. Dispose ();Return srand;}/** Obtain random colors in a given range*/Private color getrandcolor (int fc, int BC ){Random
Tomcat webapps to create a directory validate, build a WEB-INF Directory, which creates a web. xml file, the Code does not need to be written, there is a statement on the line: Web. xml: Xmlns = "http://java.sun.com/xml/ns/j2ee"
Xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
Xsi: schemalocation = "http://java.sun.com/xml/ns/j2ee
Http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd "> Java. AWT. image. *, java. util. *, javax. ImageIO. * "%>
Color getrandcolor (int
fc, int BC ){Random random = new random ();If (FC> 255) fc = 255;If (BC> 255) BC = 255;Int r = FC + random. nextint (BC-Fc );Int G = FC + random. nextint (BC-Fc );Int B =
Generate verification Image
1. Image Generation class
Public class encryptimage {
Public String srand = "";
Public color getrandcolor (int fc, int BC) {// obtain a random color from a given rangeRandom random = new random ();If (FC> 255)Fc = 255;If (BC> 255)BC = 255;Int r = FC + random. nextint (BC-
Color getrandcolor (int fc, int BC) {// obtain a random color from a given rangeRandom random = new random ();If (FC> 255) fc = 255;If (BC> 255) BC = 255;Int r = FC + random. nextint (BC-Fc );Int G = FC + random. nextint (BC-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.