上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 29 下一页
摘要: 1. 使用本机上的SQL Server Express 实例上的用户实例。 用户实例的连接创建了一个新的SQL Server 实例。此连接只能是在本地SQL Server 2005实例上并且是通过命名管的windows验证连接才有效。目的就是为了给用户创建一个完全权限的Sql Server 实例和有 阅读全文
posted @ 2016-02-24 13:06 lunawzh 阅读(1530) 评论(0) 推荐(0) 编辑
摘要: 做个连接:http://www.cnblogs.com/lhb25/archive/2011/06/27/7-great-html-5-video-player-scripts.html 阅读全文
posted @ 2016-02-21 11:04 lunawzh 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 在jcscript.com上下载最新的jCanvaScript.1.5.18.min.js文件 里面有很多关于canvas的方法都已经是封装好了的,只需直接调用,但是要注意调用之前和调用之后都要写:jc.start("XXX");//括号里的表示画布的id。 <script type="text/j 阅读全文
posted @ 2016-02-21 10:12 lunawzh 阅读(1282) 评论(0) 推荐(0) 编辑
摘要: <body> <canvas id="c1" width="400" height="400"> </canvas> <script type="text/javascript"> var oC = document.getElementById("c1"); var oGC = oC.getCon 阅读全文
posted @ 2016-02-21 08:50 lunawzh 阅读(309) 评论(0) 推荐(0) 编辑
摘要: html5新的拖拽 只支持Internet Explorer 9、Firefox、Opera 12、Chrome 以及 Safari 5 支持拖放。 来一个实例: <!DOCTYPE html> <html> <head> <style type="text/css"> table td{ widt 阅读全文
posted @ 2016-02-17 22:02 lunawzh 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 两种方法: 1. cvs.onclick = function (e) { if (e.offsetX || e.layerX) { var x = e.offsetX == undefined ? e.layerX : e.offsetX; var y = e.offsetY == undefin 阅读全文
posted @ 2016-02-09 11:00 lunawzh 阅读(3915) 评论(0) 推荐(0) 编辑
摘要: 1.保存cookie var oDate = new Date(); oDate.setDate(oDate.getDate() + 30);//有效期为30天 document.cookie = "name=www.wzh.com;expires=" + oDate; 2.读取cookie var 阅读全文
posted @ 2016-02-07 13:36 lunawzh 阅读(4803) 评论(0) 推荐(0) 编辑
摘要: 1.图像放大缩小 <script> var cvs = document.getElementById("canvas"); cvs.width = 320 cvs.height = 213; var context = cvs.getContext("2d"); var range = docum 阅读全文
posted @ 2016-01-31 22:08 lunawzh 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 1.定义画布,取得画布上下文下文 <canvas id="canvas"></canvas> js: var cvs = document.getElementById("canvas"); var context = cvs.getContext('2d'); cvs.width = 1000; 阅读全文
posted @ 2016-01-30 13:26 lunawzh 阅读(286) 评论(0) 推荐(0) 编辑
摘要: function drawStar(cxt, x, y, outerR, innerR, rot) { cxt.beginPath(); for (var i = 0; i < 5; i++) { cxt.lineTo(Math.cos((18+i*72-rot)/180*Math.PI)*oute 阅读全文
posted @ 2016-01-29 09:38 lunawzh 阅读(1007) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 29 下一页