- 博客(5)
- 收藏
- 关注
JS屏蔽鼠标右键
[code="js"]禁止点击鼠标右键function click() {if (event.button==2) { //button==1为左键alert('右键被禁用啦……')}}document.onmousedown=click[/code]
2011-10-23 22:04:06 54
java生成验证码图片
[code="java"]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...
2011-10-23 21:47:46 68
java分页page类
[code="java"]import java.util.ArrayList;import java.util.List;public class PageInfo { private int totalpage;//总页数 private List list=new ArrayList();//每页显示集合 private int totalrecord;//...
2011-10-23 21:36:41 295
JS获取标签元素
[code="js"] JS基础 window.onload=function() { var myLinks=document.getElementsByTagName("a");//获取所有标签元素 for(var i=0;i
2011-10-23 21:32:17 90
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人