html

SSL IE 内容不安全

将jquery empty()修改为html(”)



在线检测网页错误工具

没有站长可以保证自己的网页代码完全正确没有任何错误,特别是是否符合W3C标准,你可以通过以下测试来检查网站代码是否正确,无论你是asp的还是php的都可以哟。 (continue reading…)


WCAG Validator

对 Web 开发者来说,Techniques for WCAG 2.0 提供了一份具体的操作指南。实际操作时,可配合校验工具来减轻工作量, 校验工具不是很好找,我采用的是 IDI Web Accessibility Checker  TAW Online totalvalidator (continue reading…)


html禁止选择文字的方法

<!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 http-equiv=”Content-Type” content=”text/html; charset=gb2312″ />
<title>测试</title>
</head>
<body>
<div onselectstart=”return false;” style=”-moz-user-select:none;” >你选不了我</div>
</body>
</html>

1 Comment more...

判断网页是否在IFRAME或FRAME中

判断网页是否在frame中:
if(top!=this){
// 在frame中时处理
}
判断网页是否在iframe中:
if(self.frameElement.tagName==”IFRAME”){
// 页面在iframe中时处理
}

js操作iframe的一些知识

1. 打印iframe
eg. frameName.document.execCommand(‘print’);
2. 获取iframe
eg. var ifr_window = window.frames[“frameName”];
3. 获取iframe中的元素
eg1. 将iframe中id为elementId 的元素置为不显示:
var ifr_window = window.frames[“frameName”];
ifr_window.elementId.style.display = ‘none’;
eg2. 获取iframe中id为listTable的表格
var oTable =   window.frames[“myFrame”].document.all.listTable;
4. 隐藏或显示表格的某列
js函数:
function setHiddenOrShowCol(oTable, iCol, type) {
for (i = 0; i < oTable.rows.length ; i++)  {
oTable.rows[i].cells[iCol].style.display = type;
}
}
调用举例,将id为listTable的表格元素的第4列置为不显示:
var oTable =   window.frames[“myFrame”].document.all.listTable;
setHiddenOrShowCol(oTable, 3, ‘none’);
调用举例2,将id为listTable的表格元素的第4列置为显示:
var oTable =   document.frames.myFrame.document.all.listTable;
setHiddenOrShowCol(oTable, 3, ‘block’);

1 Comment more...

iframe用法总结

<iframe>是框架的一种形式,也比较常用到。

例子1。

<iframe width=420 height=330 frameborder=0 scrolling=auto src=URL></iframe>

不用多说了。

width插入页的宽;height插入页的高;scrolling 是否显示页面滚动条(可选的参数为 auto、yes、no,如果省略这个参数,则默认为auto);frameborder    边框大小;
(continue reading…)

1 Comment more...

ASCII


chr码值对应列表大全

返回 String,其中包含有与指定的字符代码相关的字符 。

Chr(“0”) 为0的字符
Chr(“1”)
Chr(“2”)
Chr(“3”) (continue reading…)


Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress