【文件属性】:
文件名称:jsp用户登录验证码实例
文件大小:4KB
文件格式:RAR
更新时间:2011-12-24 06:42:13
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-fc);
int b=fc+random.nextInt(bc-fc);
return new Color(r,g,b);
}
【文件预览】:
check
----src()
----.classpath(340B)
----.mymetadata(285B)
----.settings()
--------org.eclipse.jdt.core.prefs(334B)
----.myeclipse()
----.project(1KB)
----WebRoot()
--------META-INF()
--------check.jsp(607B)
--------a.jsp(1KB)
--------image.jsp(2KB)
--------WEB-INF()
网友评论
- 好,效果不错
- 非常不错,很实用,谢谢!