1.如果我们要做到兼容ie与ff浏览器就可以在要屏蔽双击的div上加上return false;与-moz-user-select:none;即可解决了,下面看例子。指定div屏蔽双击选中文字的区域如果要屏蔽整个页面我们在页面的body上加 这个是兼容ie浏览器然后在head中加如入下面代码 这里是...
分类:
其他好文 时间:
2014-12-09 21:13:20
阅读次数:
192
<html><head><title>Validator</title><scripttype="text/javascript">functioncheckForm(){if(window.confirm("Areyousureyouwanttosumbitthisform?")){returntrue;}returnfalse;}</script></head><body><formaction="2...
分类:
Web程序 时间:
2014-12-09 19:52:23
阅读次数:
239
php Header PHP_AUTH_USER PHP_AUTH_PW 用户验证 在php中,可以使用Header函数做一些有趣的事情,用户验证就是其中一个很有意思的功能。具体用法: Header("WWW-Authenticate: Basic realm="USER LOGIN""); Head...
分类:
Web程序 时间:
2014-12-09 16:01:15
阅读次数:
237
//CycQueue.h
/*
Queue:First In First Out (FIFO)
避免假溢出:使用循环队列。
*/
#define QUEUEMAX 20
//1.定义队列结构
typedef struct
{
DATA data[QUEUEMAX]; //队列数组
int head; //队头
int tail; //队尾
}CycQueue;
/...
分类:
其他好文 时间:
2014-12-09 15:46:05
阅读次数:
270
<HTML>
<head>
?<title>js获取文件大小</title>
?<meta??http-equiv="content-type"?content="text/html;charset=utf-8"?>
?<script?type="text/javascript">
?
????
var?isIE?=?/msie/i.test(...
分类:
Web程序 时间:
2014-12-09 14:10:18
阅读次数:
156
linux cat,tac,more,less,head,tail,cut,sort,uniq,wc,tr命令的使用
cat:连接并显示,比如:[root@localhost~]#cat/tmp/sort.test
111
324
567
324
890
890
567
abc加上选项-n会显示行号:[root@localhost~]#cat-n/tmp/sort.test
1111
2324
3567
4324
5890
6890
7567
8abc加上-E选项会显示行尾符$:(linux中行尾符是$)root@localhost~]#cat-E/tmp..
分类:
系统相关 时间:
2014-12-09 01:57:25
阅读次数:
272
原文地址Nancy 是一个轻量级的、低门槛的框架,用于在.Net和Mono上构建基于HTTP的服务。这个框架的目标是尽可能的保持简单并为所有的交互提供一个super-duper-happy-path。Nancy被设计用来处理DELETE、GET、HEAD、OPTIONS、POST、PUT和PATCH...
分类:
其他好文 时间:
2014-12-08 22:49:40
阅读次数:
301
HTML_后台框架全屏界面_简易table形式 <!DOCTYPE?html>
<html>
<head>
?<meta?charset="UTF-8">
?<title>Document</title>
?<style>
??html,?body?{
???width:100%;
???height:100%;
???pad...
分类:
Web程序 时间:
2014-12-08 19:53:01
阅读次数:
231
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. Y...
分类:
其他好文 时间:
2014-12-08 19:38:48
阅读次数:
173
<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Transitional//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">??
<html?xmlns="http://www.w3.org/1999/xhtml">??
<head>??
?<...
分类:
Web程序 时间:
2014-12-08 15:55:37
阅读次数:
255