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&
相关文档:
一、功能实现核心:FileSystemObject 对象
要在javascript中实现文件操作功能,主要就是依靠FileSystemobject对象。
二、FileSystemObject编程
使用FileSystemObject 对象进行编程很简单,一般要经过如下的步骤: 创建FileSystemObject对象、应用相关方法、访问对象相关属性 。 ......
  ......
if (elename.equalsIgnoreCase("back") || elename.equalsIgnoreCase("1"))
return "<a href=\"javascript:window.history.back()\">后退</a>";
&nbs ......
用call方法实现继承
function classA(sColor){
this.color=sColor;
this.sayColor=function(){
alert(this.color);
......