易截截图软件、单文件、免安装、纯绿色、仅160KB

JavaScript特效:弹出菜单

<!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" />
<meta name="Generator" content="Dreamweaver8" />
<meta name="Author" content="枫叶随风 QQ:455948725 E-mail:liukun615@126.com" />
<link rel="shortcut icon" href="http://www.fengyekun.com/favicon.ico" />
<title>JavaScript弹出菜单</title>
<style type="text/css">
<!--
* {font-family:"宋体", Arial, Helvetica, sans-serif; margin:0px; padding:0px; font-size:12px;}
#main {width:100%;}
#content {
    margin-top:100px;
}
#navbg {
    background:#CC0033;
}
#nav {
    position:relative;
    margin:0px auto;
    width:403px;
}
#menu li {
    float:left;
    width:100px;
    height:30px;
    line-height:30px;
}
#menu a:link,#menu a:visited,#menu a:hover {
    color:#fff;
    text-decoration:none;
}
#menudiv {
    top:0px;
    padding-top:30px;
    width:100px;
}
#menudiv table {
    width:100px;
    border-top:1px solid #fff;
    background:#CC0033;
}
#menudiv table td {
    height:25px;
    line-height:25px;
    text-align:center;
    color:#fff;
}
-->
</style&


相关文档:

Javascript 中 String.replace( ) 的妙用

<script language="javascript">
<!--
String.prototype.replaceAll = stringReplaceAll;
function stringReplaceAll(AFindText,ARepText){
raRegExp = new RegExp(AFindText,"g");
return this.replace(raRegExp,ARepText)
}
var content = "%sfasf%sfd%asdfsadf%1111%"
 // 把 所有的 % 替换为 #
......

增强AJAX/Javascript/JS网页文字抓取能力


本文是对《AJAX动态网页信息提取原理》
的补充,前文总结了两种AJAX网页文字的抓取方法:
网页文字在加载HTML文档(document)的时候用Javascript代码获取和展现,此Javascript代码在发送load事件之前运行,那么接收到load事件表示所有的内容都加载完了
网页文字在加载完HTML文档(document)后在某个时刻用Javascript ......

JavaScript就这么回事 (JS基础知识整理)

1 创建脚本块
 引用内容程序代码
<script language=”JavaScript”>
JavaScript 代码写在这里面
</script>
2 隐藏脚本代码
 引用内容程序代码
<script language=”JavaScript”>
<!--
document.write(“Hello”);
// -->
</script>
在 ......

javascript common

1.document.write( " "); 输出语句
2.JS中的注释为//
3.传统的HTML文档顺序是:document- >html- >(head,body)
4.一个浏览器窗口中的DOM顺序是:window- >(navigator,screen,history,location,document)
5.得到表单中元素的名称和值:document.getElementById( "表单中元素的ID號 ").name(或value)
6 ......

javascript继承

用call方法实现继承
function classA(sColor){ 
       this.color=sColor; 
       this.sayColor=function(){ 
         alert(this.color); 
       ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号