上一页 1 ··· 5 6 7 8 9 10 11 12 下一页

2012年3月13日

摘要: alert("第一行文字"+'\n'+"第二行文字"); 阅读全文
posted @ 2012-03-13 21:50 Cosimo 阅读(229) 评论(0) 推荐(0) 编辑
摘要: alert("我是警告框"); 阅读全文
posted @ 2012-03-13 21:42 Cosimo 阅读(246) 评论(0) 推荐(0) 编辑

2012年3月11日

摘要: if else 简单应用。随机链接。 阅读全文
posted @ 2012-03-11 21:24 Cosimo 阅读(208) 评论(0) 推荐(0) 编辑

2012年3月10日

摘要: 本例演示 if..else if...else 语句 阅读全文
posted @ 2012-03-10 22:25 Cosimo 阅读(420) 评论(0) 推荐(0) 编辑
摘要: if else 用法。当时间小于12的时候,输出“上午好”。当时间大于12的时候,输出“下午好”。 阅读全文
posted @ 2012-03-10 21:40 Cosimo 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 本例演示 If 语句。如果浏览器时间小于 10,那么会向您问“早安”。 阅读全文
posted @ 2012-03-10 21:29 Cosimo 阅读(219) 评论(0) 推荐(0) 编辑

2012年3月9日

摘要: draw3dText(context,"www.naokr.com",canvas.width/2,120,5); 阅读全文
posted @ 2012-03-09 22:53 Cosimo 阅读(1252) 评论(0) 推荐(0) 编辑
摘要: 脚本声明了一个变量,给变量赋值就显示该值,改变该值,然后再显示该值。 阅读全文
posted @ 2012-03-09 17:59 Cosimo 阅读(162) 评论(0) 推荐(0) 编辑
摘要: onload="message()" 阅读全文
posted @ 2012-03-09 17:36 Cosimo 阅读(216) 评论(0) 推荐(0) 编辑

2012年3月8日

摘要: HTML5 Canvas 绘制树,每次刷新,树的形状都会变的。本实例来自网络。 阅读全文
posted @ 2012-03-08 22:22 Cosimo 阅读(844) 评论(0) 推荐(0) 编辑

2012年3月7日

摘要: 【文字设置成为标题1】document.write(); 阅读全文
posted @ 2012-03-07 22:16 Cosimo 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 【自学js,从零开始。一定要坚持住。最简单的一个实例,document.write(),写入文字】 阅读全文
posted @ 2012-03-07 22:05 Cosimo 阅读(282) 评论(0) 推荐(0) 编辑

2012年3月6日

摘要: 贝赛尔曲线的应用。context.bezierCurveTo(startX-40,startY+20,startX-40,startY+70,startX+60,startY+70); 阅读全文
posted @ 2012-03-06 22:02 Cosimo 阅读(431) 评论(0) 推荐(0) 编辑

2012年3月5日

摘要: 绘制齿轮实例,为 canvas 绘图的一个综合应用。用到的知识包括,绘制圆形,线性渐变,lineJoin等。 阅读全文
posted @ 2012-03-05 22:07 Cosimo 阅读(1054) 评论(0) 推荐(0) 编辑

2012年3月2日

摘要: context.globalAlpha=0.5; context.beginPath(); context.arc(canvas.width/2,canvas.height/2,70,0,2*Math.PI,false); context.fillStyle="red"; context.fill(); 阅读全文
posted @ 2012-03-02 22:32 Cosimo 阅读(572) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页

导航