Repository navigation
Expand file tree
/
Copy pathmain.html
More file actions
76 lines (61 loc) · 2.5 KB
/
Copy pathmain.html
File metadata and controls
76 lines (61 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<html >
<head>
<!-- <meta charset="GB2312">-->
<link rel="stylesheet" type="text/css" href="stylesheet/1.css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
var pics=new Array();
pics[0]="pic/1.jpg";
pics[1]="pic/2.jpg";
var i=0;
$(document).ready(function(){
function change(){
if(i<1)
{
$("[src='" + pics[i] + "']").fadeOut("slow");
$("[src='"+pics[i+1] + "']").fadeIn("slow");
i+=1;
}
else
{
$("[src='" + pics[i] + "']").fadeOut("slow");
$("[src='"+pics[0]+"']").fadeIn("slow");
i=0;
}
}<!--change-->
setInterval(change,3000);
})
function setStyle(x)
{
document.getElementById(x).color="yellow"
}
</script>
</head>
<body bgcolor="#E6E6F2">
<div id="menu">
<ul>
<li class="index"><a href="main.html">首页</font></a></li>
<li class="blogs"><a href="1.html">博文</a></li>
<li class="value"><a href="1.html">推荐</a></li>
</ul>
</div>
<div id="header"> <h1 id="blog-title">Liu Wanzhen</h1>
<h2 id="blog-subtitle">      Nevermind,I'll find someone like you.</h2>
</div>
<div id="content" bgcolor="#E6E6F2">
<div id="picture" bgcolor="#E6E6F2">
<img id="index" src="pic/1.jpg"> </img>
<img id="index" src="pic/2.jpg" style="display:none"> </img>
</div>
<script type="text/javascript">
var myDate =new Date();
var day = myDate.getDate();
var month= myDate.getMonth();
var year= myDate.getYear() + 1900;
document.write(' <div id = "date" style="background-color:#E6E6F2" > <p align="right"> <font id="day" color="#484891" size="10" style="font-weight:600">'+ day +'</font> </p> <p align="right"> <font color="#ADADAD" size="6">'+ year + '.' + month +'</font> </p>');
</script>
<div id="diary"> <p> <font color="white">今天去南校,忘记了买药。</font></p> </div> </div>
<hr size="8" color="#C7C7E2">
<p id="tail" align="center"><font color="#000000" size="3">Contact me via   </font><font color="#484891" size="3">liuwanzh@qq.com</font></p>
<!-- <div id="date"> <h2 color="003E3E">11月5日</h2></div> -->
</body>