摘要: <script type="text/javascript" language="javascript"> function ShowPage() { //打开页面的宽度 var width='500'; //打开页面的高度 var height='400'; //window.screen.width为当前屏幕宽度 var left=(window.screen.width-widt... 阅读全文
posted @ 2009-02-28 15:49 周枫 阅读(1209) 评论(2) 推荐(1) 编辑
摘要: <!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><meta htt... 阅读全文
posted @ 2008-08-28 13:48 周枫 阅读(3453) 评论(2) 推荐(1) 编辑
摘要: CSSHACK区别IE6与FF: background:orange;*background:blue; background:orange;_background:blue; background:blue;!important;background:orange;区别IE6与IE7:background:blue;!important;background:green;background:g... 阅读全文
posted @ 2008-08-13 09:28 周枫 阅读(5936) 评论(2) 推荐(3) 编辑
摘要: //在当前页面打开location.href="http://www.google.cn/";window.location.href="http://www.google.cn/";//后退到前一页面history.go(-1);//在新页面打开window.open('http://www.google.cn/','','height=500,width=611,scrollbars=yes,... 阅读全文
posted @ 2008-08-12 11:35 周枫 阅读(1549) 评论(0) 推荐(1) 编辑
摘要: 网页可见区域宽:document.body.clientWidth网页可见区域高:document.body.clientHeight网页可见区域宽:document.body.offsetWidth(包括边线的宽)网页可见区域高:document.body.offsetHeight(包括边线的宽)网页正文全文宽:document.body.scrollWidth网页正文全文高:document.... 阅读全文
posted @ 2008-07-31 11:20 周枫 阅读(8962) 评论(1) 推荐(1) 编辑
摘要: 1.在页面添加一个输入框和一个按钮[代码]2.添加后台事件[代码]3.作为模板的HTML页面(JavaScript事件无法触发,CSS样式不能为引用文件)[代码] 阅读全文
posted @ 2008-06-19 22:45 周枫 阅读(5943) 评论(3) 推荐(2) 编辑
摘要: <htmlxmlns="<ahref="http://www.w3.org/1999/xhtml"target="_blank"><head><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/><title>图片动态显示</title><style... 阅读全文
posted @ 2008-06-16 21:50 周枫 阅读(1275) 评论(0) 推荐(1) 编辑