文章列表
文件:
jquery-1.7.1.min.js
socket.io.js
client.js
node.js (放到与public同级的目录下)
index.html
文件结构:
注意:本地IP是192.168.145.10
index.html
<html>
<head>
<script src="./public/jquery-1.7.1.min.js"></script>
<script src=&quo ...
1.禁用右键菜单
$(document).ready(function(){ $(document).bind("contextmenu",function(e){returnfalse;});});
2.让字体闪烁
jQuery.fn.flash=function( color, duration ){var current =this.css('color');this.animate({ color:'rgb('+ color +')'}, duration / 2 );this.animate({ color: current }, du ...