js滚动,每天日期更新,内容随机

分类:js小程序

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0039)http://www.yyssg.com/fmy/shipments.html --><HTML 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>无标题文档</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE type=text/css>#fah_list {
	LINE-HEIGHT: 16px; COLOR: #524f4f; FONT-SIZE: 12px
}
BODY {
	PADDING-BOTTOM: 0px; BACKGROUND-COLOR: #ffffff; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px
}
#qdemo {
	TEXT-ALIGN: center; MARGIN: 0px; WIDTH: 280px; HEIGHT: 380px; OVERFLOW: hidden
}
</STYLE>

<META name=GENERATOR content="MSHTML 9.00.8112.16484"></HEAD>
<BODY>
<DIV id=qdemo>
<DIV id=qdemo1>
<TABLE style="LINE-HEIGHT: 200%; FONT-SIZE: 12px" border=0 cellSpacing=0 
cellPadding=0 width=280>
  <TBODY>
  <TR>
    <TD>
      <DIV id=fah_list>
      <P class=unnamed2 align=left><SPAN class=h1818><SPAN class=style5>
      <SCRIPT language=javascript>
				var i=0;
				for(i=0;i<22;i++){
				tmpDate=new Date();
				date=tmpDate.getDate();
				month= tmpDate.getMonth() + 1 ;
				year= tmpDate.getFullYear();
				document.write(year);
				document.write("年");
				document.write(month);
				document.write("月");
				document.write(date);
				document.write("日");
				
				var rand1=parseInt(Math.random()*25+1);
				quotes=new Array 
				quotes[1]=' 北京的' 
				quotes[2]=' 上海的' 
				quotes[3]=' 天津的' 
				quotes[4]=' 湖南的' 
				quotes[5]=' 湖北的' 
				quotes[6]=' 湖北的' 
				quotes[7]=' 广东的' 
				quotes[8]=' 广西的' 
				quotes[9]=' 重庆的' 
				quotes[10]=' 四川的' 
				quotes[11]=' 山东的' 
				quotes[12]=' 河南的' 
				quotes[13]=' 河北的' 
				quotes[14]=' 山西的' 
				quotes[15]=' 贵州的' 
				quotes[16]=' 黑龙江的' 
				quotes[17]=' 福建的' 
				quotes[18]=' 浙江的' 
				quotes[19]=' 江苏的' 
				quotes[20]=' 江西的' 
				quotes[21]=' 海南的' 
				quotes[22]=' 陕西的'
				quotes[23]=' 浙江省'
				quotes[24]=' 安徽省'
				quotes[25]=' 福建省'
				var quote=quotes[rand1]				
				document.write(quote) 
				
				var rand1=parseInt(Math.random()*25+1);
				quotes=new Array 
				quotes[1]='张小姐' 
				quotes[2]='刘先生' 
				quotes[3]='周小姐' 
				quotes[4]='吴小姐' 
				quotes[5]='朱先生' 
				quotes[6]='陈小姐' 
				quotes[7]='田小姐' 
				quotes[8]='钟小姐' 
				quotes[9]='钟先生' 
				quotes[10]='韩小姐' 
				quotes[11]='顾小姐' 
				quotes[12]='王小姐' 
				quotes[13]='李先生' 
				quotes[14]='卢小姐' 
				quotes[15]='崔小姐' 
				quotes[16]='段先生' 
				quotes[17]='胡小姐' 
				quotes[18]='潘小姐' 
				quotes[19]='陈先生' 
				quotes[20]='林小姐' 
				quotes[21]='代小姐' 
				quotes[22]='苏先生'
				quotes[23]='刘小姐'
				quotes[24]='孟小姐'
				quotes[25]='蔡小姐'
				var quote=quotes[rand1]				
				document.write(quote) 
				
				var rand1=parseInt(Math.random()*18+1);
				quotes=new Array 
				quotes[1]='(130****'
				quotes[2]='(131****'
				quotes[3]='(132****'
				quotes[4]='(133****'
				quotes[5]='(134****'
				quotes[6]='(135****'
				quotes[7]='(136****'
				quotes[8]='(137****'
				quotes[9]='(138****'
				quotes[10]='(139****'
				quotes[11]='(150****'
				quotes[12]='(151****'
				quotes[13]='(152****'
				quotes[14]='(153****'
				quotes[15]='(155****'
				quotes[16]='(156****'
				quotes[17]='(158****'
				quotes[18]='(159****'
				var quote=quotes[rand1]				
				document.write(quote+ parseInt(Math.random()*9+1)+ parseInt(Math.random()*9+1)+parseInt(Math.random()*9+1)+parseInt(Math.random()*9+1)+')<br>')
				
				var rand1=parseInt(Math.random()*7+1)
				quotes=new Array
				quotes[1]='你订购的青春少女装(喝出喷血三围)买3送1 850元已发货!'
				quotes[2]='你订购的诱惑熟女装(秀出深V诱惑)买6送2 1500元已发货!'
				quotes[3]='你订购的妈妈美胸装(飞机场变圣母峰)买9送3 2080元已发货!'				
				quotes[4]='你订购的完美坚挺装(胸挺肤靓万人迷)买12送4 2680元已发货!'
				quotes[5]='你订购的妈妈美胸装(飞机场变圣母峰)买9送3 2080元已发货!'				
				quotes[6]='你订购的诱惑熟女装(秀出深V诱惑)买6送2 1500元已发货!'
				quotes[7]='你订购的妈妈美胸装(飞机场变圣母峰)买9送3 2080元已发货!'				
				var quote=quotes[rand1]
				document.write(quote)
				document.write('<br><br>');
				}
				</SCRIPT>
      </SPAN><BR><BR></SPAN></P></DIV></TD></TR></TBODY></TABLE></DIV>
<DIV id=qdemo2></DIV></DIV>
<SCRIPT>
var speed=30;
var qdemo2=document.getElementById("qdemo2");
var qdemo1=document.getElementById("qdemo1");
var qdemo=document.getElementById("qdemo");
qdemo2.innerHTML=qdemo1.innerHTML; //克隆qdemo1为qdemo2
function Marquee1(){
//当滚动至qdemo1与qdemo2交界时
if(qdemo2.offsetTop-qdemo.scrollTop<=0){
 qdemo.scrollTop-=qdemo1.offsetHeight; //qdemo跳到最顶端
 }else{
 qdemo.scrollTop++
}
}
var MyMar1=setInterval(Marquee1,speed)//设置定时器
//鼠标移上时清除定时器达到滚动停止的目的
qdemo.onmouseover=function() {clearInterval(MyMar1)}
//鼠标移开时重设定时器
qdemo.onmouseout=function(){MyMar1=setInterval(Marquee1,speed)}
</SCRIPT>
</BODY></HTML>

 

 

本文链接: js滚动,每天日期更新,内容随机
版权所有:布士收藏夹在网络收集,如有侵犯你的权利, 请联系QQ:641868752。

评论

发表评论

*

* (显示gravatar头像)

Ctrl+Enter快捷回复

© 2014 布士收藏夹 all rights reserved.