javascript 经常用的一些特殊效果
1. 让文字不停的滚动。
<marouee>滚动文字</marouee>
2.记录并显示网页的最后修改时间
<script language="javascript">
doucument.write("最后更新时间:" + document.lastModified + " ")
</script>
3.添加到收藏夹
<script language="javascript">
function bookmarkit() {
window.external.addFavorite('http://你的网址','你的网站名称');
}
if(document.all)
document.write('<a href="#" onClick="bookmarkit()">加入收藏夹</a>');
</script>
4.设置该页为首页
<body bgcolor="#FFFFFF" text="#000000">
<!--网址:http://你的网址-->
<a class="chlnk" style="cursor:hand"
href onClick="this.style.behavior='url(#default#homeapge)';this.setHomePage('你的网站名称);"><font color="000000" size="2" face="宋体">设为首页</font></a>
//未完。。。明天继续
相关文档:
<!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 runat="server">
<title>无标题页</title>
</head>
<body>
<form id ......
一、功能实现核心:FileSystemObject 对象
要在javascript中实现文件操作功能,主要就是依靠FileSystemobject对象。
二、FileSystemObject编程
使用FileSystemObject 对象进行编程很简单,一般要经过如下的步骤: 创建FileSystemObject对象、应用相关方法、访问对象相关属性 。 ......
1 一起困惑始于变量的作用域
请先看下面的代码:
示例1:
var message = " this is a very simple function ";
function simpleFunc(){
alert(message);
}
背后的道理大家都懂(如果不懂的可以先别往 ......
javascript所对应的全选和反选 。操作数据库记录。
以下是页面代码:
<tr>
<td colspan="6" width="100%">
<table border="2" width="100%">
<tr class="center">
<th width="20%& ......
<!doctype html>
<html lang="zh-ch">
<head>
<meta charset="utf-8" />
<meta content="IE=8" http-equiv="X-UA-Compatible"/>
<title>mousewheel的事件绑定 by 司徒正美</title>
<mce:script type="text/javascript"><!--
window. ......