慕课贺春源代码

根据慕课网写的内容,祝大家2018新春快乐!

<link rel="stylesheet" href="page change.css">
<script type="text/jscript" src="page change.js"></script>
<body>
<div id="page">
<div id="music" class="music">
    <div id="img" class="img"><img src="image/music_disc.png" alt=""></div>
<div class="img2"><img src="image/music_pointer.png" alt=""></div>
<audio id="music_1" loop="loop" autoplay="autoplay">
<source src="music/1.mp3">
</audio>
</div>    /*磁盘*/
<div id="page1">
<div class="dlong"></div>
<div class="sg"></div>
<div class="dj">点击屏幕<br>开启好运2018!</div>
<div class="xiaom"></div>
<div class="ft">2018 新年快乐!</div>
</div>    /*第一页*/
<div id="page2" class="page2">
<div class="p2_2018">2018!</div>
    <div class="circle">
<div class="circle_1"></div>
<div class="circle_2"></div>
<div class="circle_3"></div>
</div>
</div>    /*第二页*/
<div id="page3" class="page3">
<div class="p3_1"></div>
<div class="p3_2"></div>
<div class="p3_3"></div>
<div class="p3_4"></div>
<div class="p3_5">君不见!</div>
<div class="p3_6"></div>
</div> /*第三页*/
</div>
</body>


css部分

@charset "utf-8";
/* CSS Document */
*{
margin: 0px;
padding: 0px;
overflow: hidden;
}
/*页面设置*/
#page{
position: static;
width:100vw;
height:100vh;
}
#page1{display:block;}
/*第一页相关属性*/
#page1{
position: absolute;
background-image: url(image/p1_bg.jpg);
background-repeat: no-repeat;
background-size:cover;
width:100vw;
height:100vh;
}
/*音乐的设置*/
.music{
position: absolute;
top:5vh;
right:5vw;
    width:15vw;
height:15vw;
border:2px solid #FC0509;
border-radius:50%;
z-index: 20;
}
#img{
position:absolute;
top:1vw;
left:1vw;
width:13vw;
height:13vw;
animation: xz_out 1s linear 0s infinite;
}
#img img{
width:13vw;
height:13vw;
}
.img2{
position: absolute;
    width:13vw;
height:13vw;
left:10vw;
top:2vw;
}
/*灯笼*/
.dlong{
position: absolute;
left:30.5vw;
width:65vw;
height:65vh;
background-image: url(image/p1_lantern.png);
background-repeat:no-repeat;
background-size: contain;
}
.dj{
font-size: 5vw;
color:white;
position: absolute;
top:48vw;
left:35vw;
text-align: center;
}
.sg{
position: absolute;
left:34.5vw;
top:21vh;
width:35vw;
height:35vw;
background-color: #D82326;
border-radius: 50%;
box-shadow: 0 0 10vw 5vw #D82326;
animation:sg 0.3s ease-in-out infinite alternate running none;
}
@keyframes sg{
0%{
transform:scale(0.8);
opacity: 0.7;
}
100%
{
transform: scale(1.1);
}
}
/*小慕*/
.xiaom{
position: absolute;
left:30vw;
top:65vh;
width:45vw;
height:45vh;
background-image: url(image/p1_imooc.png);
background-repeat:no-repeat;
background-size: contain;
}
.ft{
position: absolute;
top: 95vh;
left:36vw;
color:#000000;
font-size:5vw;
}
/*第二页*/
#page2{
display:none;
}
/*第二页相关属性*/
.page2{
position: absolute;
background-image: url(image/p2_bg.jpg);
background-repeat: no-repeat;
background-size:cover;
width:100vw;
height:100vh;
transition: transform 0.5s linear;
}
.p2_up{
transform:translateY(-100vh);
opacity:0.3;
}
/*圈圈*/
.circle{
position: absolute;
width:75vw;
height:75vh;
left:14vw;
top:25vh;
}
/*大圈圈*/
.circle_1{
position:absolute;
background-image: url(image/p2_circle_outer.png);
background-repeat: no-repeat;
background-size: contain;
width:75vw;
height:75vw;
animation:xz_out 0.6s 0s infinite;
animation-timing-function:linear;
}
/*动画*/
@keyframes xz_out{
0%{
transform:rotate(0deg);
}
100%{
transform:rotate(360deg);
}
}
/*中圈圈*/
.circle_2{
position:absolute;
background-image: url(image/p2_circle_middle.png);
background-repeat: no-repeat;
background-size: contain;
width:50vw;
height:50vw;
left:12vw;
top:7vh;
animation:xz_middle 0.6s 0.5s infinite;
animation-timing-function:linear;
}
@keyframes xz_middle{
0%{
transform:rotate(0deg);
}
100%{
transform:rotate(-360deg);
}
}
/*小圈圈*/
.circle_3{
position:absolute;
background-image: url(image/p2_circle_inner.png);
background-repeat: no-repeat;
background-size: contain;
width:40vw;
height:40vw;
left:17vw;
top:9.5vh;
animation:xz_in 0.8s 1.0s infinite;
animation-timing-function:linear;
}
@keyframes xz_in{
0%{
transform:rotate(0deg);
}
100%{
transform:rotate(360deg);
}
}
.p2_2018{
width:65vw;
height:20vh;
position: absolute;
top: 78vh;
left:20vw;
font-size:24vw;
color:white;
}
/*第三页*/
#page3{display:block;}
.page3{
position:absolute;
width:100vw;
height:100vh;
top:100vh;
background-image: url(image/p3_bg.jpg);
background-size:cover;
background-repeat:no-repeat;
transition: transform 0.5s linear;
}
.p3_up{
transform:translateY(-100vh);
}
/*大写的福*/
.p3_1{
position:absolute;
width:40vw;
height:40vw;
background-image: url(image/p3_blessing.png);
background-repeat:no-repeat;
background-size:contain;
top:45vh;
left:31vw;
animation:xz_in 1s linear 0s infinite;
}
/*左右对联*/
.p3_2{
position:absolute;
width:25vw;
height:50vh;
top:32vh;
background-image:url(image/p3_couplet_second.png);
background-size:contain;
background-repeat:no-repeat;
}
.p3_3{
position:absolute;
width:25vw;
height:50vh;
top:32vh;
left:75vw;
background-image:url(image/p3_couplet_first.png);
background-size:contain;
background-repeat:no-repeat;
}
/*慕课贺春*/
.p3_4{
position:absolute;
width:30vw;
height:50vh;
background-image: url(image/p3_title.png);
background-repeat:no-repeat;
background-size:contain;
}
/*logo*/
.p3_5{
position:absolute;
width:20vw;
height:20vh;
top:95vh;
right:5vw;
font-size:5vw;
color:white;
font-family:"dawning-of-a-new-day";
}
/*署名*/
.p3_6{
position:absolute;
width:20vw;
height:20vh;
top:95vh;
left:5vw;
background-image: url(image/p3_logo.png);
background-size: contain;
background-repeat:no-repeat;
}



JS部分

// JavaScript Document
window.onload = function ()
{
    var page = document.getElementById("page");
var page1 = document.getElementById("page1");
var page2 = document.getElementById("page2");
var page3 = document.getElementById("page3");
page1.addEventListener("touchstart",function(){
/*第一页和第二页的交互*/
page1.style.display="none";
page2.style.display="block";                    
/*第二页和第三页的交互*/
        setTimeout(function(){
page2.setAttribute("class","page2 p2_up");
page3.setAttribute("class","page3 p3_up");       
},4500);
},false);
    var i=1;
var img = document.getElementById("img");
    var music = document.getElementById("music_1");
  /*通过监听点击次数来控制磁盘和音乐的停放*/
    img.addEventListener("click",function(){
i=-i;
if(i==-1)
{
img.style.animation="none";            
music.pause();
}
else{
img.style.animation="xz_out 1s linear 0s infinite";
music.play();
}
},false);
}


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
微厦在线培训考试系统是一款基于B/S架构的在线学习系统,支持手机端、电脑端,可以在安卓、苹果、微信中使用,方便学员利用碎片化时间进行随时随地的学习,可广泛用于培训机构、职业学院、机关单位、企业机构等等。该系统集在线学习、在线练习、模拟考试、在线考试于一体,这对于培训机构的远程教学开展更加有利。 软件功能 1. 支持手机,可以在安卓、苹果、微信中使用。 2. 在线学习、在线练习、模拟考试、在线考试、错题回顾、考试回顾等 3. 支持自动判卷和手工判卷。 4. 支持本地视频(flv)在线上传在线播放。 5. 支持试题批量导入、导出。 6. 支持考试成绩分组查询、分组导出。 2016新增功能 1. *支持多种界面风格,风格自由切换 2. *视频在线学习,精准记录学员观看时间(视频失去焦点即停止播放) 3. *支持视频播放事件(课堂提问、实时反馈、提醒、资料展示) 4. *学习时间精准统计,统计在线时间,在线学习时间 5. *支持微信,手机端在线学习、在线考试 6. *学员批量导入、批量导出 7. *教师批量导入、批量导出 8. *支持公式编辑 系统环境 系统基于.Net 4.0开发;数据库采用Sqlserver2005; 硬件环境:CPU1.6Mhz以上,内存2GB以上 软件环境:Windows server 2003或以上版本、IIS6以上版本、DotNet4.0 Framework、Sqlserver2005或以上版本 演示地址 http://exam.weisha100.cn/ 学员账号:13223040250密码1 教师账号:18037155753密码1 管理账号:song密码1(在网站底部的“机构管理”处登录) 下载地址 http://pan.baidu.com/s/1bppzM15 联系 QQ:19303340 淘宝店:https://shop35387540.taobao.com/

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值