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>
<title>纵向不间断滚动图片</title>
<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" />
<style type="text/css">
<!--
body {font-family:"宋体", Arial, Helvetica, sans-serif; margin:0px; font-size:12px;}
.clear {clear:both;}
#main {width:100%;}
#content {position:relative; top:50%; margin:-150px auto; width:500px; height:300px; border:1px solid #999; background:#eee; clear:both;}
#left {float:left; width:180px; height:300px; color:#ff0000; writing-mode:tb-rl; font-size:20px; font-weight:bold; line-height:180px; text-align:center;}
#right {float:left; width:120px; height:280px; text-align:center; overflow:hidden; border:10px solid #fff;}
#right img {width:120px; height:90px;}
#demo1 a,#demo2 a {display:block; margin:5px 0px;}
-->
</style>
<script language="javascript">
var Tid;
function MarqueeImage(Direction){
var speed=20;
var demo1 = document.getElementById("demo1");
var demo2 = document.getElementById("demo2");
var mydiv = document.getElementById("right");
d
相关文档:
本文是对《AJAX动态网页信息提取原理》
的补充,前文总结了两种AJAX网页文字的抓取方法:
网页文字在加载HTML文档(document)的时候用Javascript代码获取和展现,此Javascript代码在发送load事件之前运行,那么接收到load事件表示所有的内容都加载完了
网页文字在加载完HTML文档(document)后在某个时刻用Javascript ......
Array 对象
Array 对象用于在单个的变量中存储多个值。
创建 Array 对象的语法:
new Array();
new Array(size);
new Array(element0, element0, ..., elementn);
参数
参数 size 是期望的数组元素个数。返回的数组,length 字段将被设为 size 的值。
参数 element ..., elementn 是参数列表。当使用这些参数来调 ......
  ......
用call方法实现继承
function classA(sColor){
this.color=sColor;
this.sayColor=function(){
alert(this.color);
......
var Tid;
var SetTime=4*60*60*1000; //设置毫秒数,1000毫秒为1秒
function LTime(){
var MyDiv=document.getElementById("mydiv");
var Time,TempTime,Days,Hours,Minutes,Seconds;
&n ......