摘要: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>使用自定义标签</title> <style type="text/css"> banbu\:h1{display:block; border:1px solid #ccc; background-color:#efefef; color:#00a;width:100px;heigh 阅读全文
posted @ 2012-07-25 15:09 banbu 阅读(307) 评论(0) 推荐(0) 编辑
摘要: <!–[iflt IE 9]> <script src=”http://html5shiv.googlecode.com/svn/trunk/html5.js”></script> <![endif]–> 阅读全文
posted @ 2012-07-25 14:01 banbu 阅读(141) 评论(0) 推荐(0) 编辑
摘要: <html><head><script type="text/javascript">function disp_prompt() { var name=prompt("请输入您的名字","Bill Gates") if (name!=null && name!="") { document.write("你好!" + name + " 今天过得怎么样?") } }</script></head>&l 阅读全文
posted @ 2012-07-25 11:10 banbu 阅读(380) 评论(0) 推荐(0) 编辑
摘要: <html><head><script type="text/javascript">function show_confirm(){var r=confirm("Press a button!");if (r==true) { alert("You pressed OK!"); }else { alert("You pressed Cancel!"); }}</script></head><body><input type=" 阅读全文
posted @ 2012-07-25 11:08 banbu 阅读(1629) 评论(0) 推荐(0) 编辑
摘要: <script>function GetRandomNum(Min,Max){var Range = Max - Min;var Rand = Math.random();return(Min + Math.round(Rand * Range));}var num = GetRandomNum(1,10);alert(num);</script>var chars = ['0','1','2','3','4','5','6','7',' 阅读全文
posted @ 2012-07-25 11:06 banbu 阅读(592336) 评论(6) 推荐(14) 编辑