37.中国牡丹之都山东菏泽旅游网页 Web前端网页制作 大学生期末大作业 html+css+js

目录

二、网页文件

 三、网页效果

四、代码展示

1.HTML

2.CSS

3.JS

五、更多推荐


一、前言 

本实例是中国牡丹之都山东菏泽旅游网站,家乡主题设计,应用html+css+js,粉红色的牡丹花背景,简单大气,供大家参考。本网页支持如Dreamweaver、HBuilder、Text 、Vscode 等任意html编辑软件进行编辑修改;支持包括IE、Firefox、Chrome、Safari主流浏览器浏览。


二、网页文件


 三、网页效果

以下为网页正文(节选示例):


四、代码展示

1.HTML

代码如下(节选示例):

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>菏泽——我的家乡</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/caidan.js"></script>
<script type="text/javascript">
function MM_jumpMenuGo(objId,targ,restore){ //v9.0
  var selObj = null;  with (document) { 
  if (getElementById) selObj = getElementById(objId);
  if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0; }
}
function MM_displayStatusMsg(msgStr) { //v1.0
  window.status=msgStr;
  document.MM_returnValue = true;
}
</script>
</head>
<body οnlοad="MM_displayStatusMsg('山东菏泽欢迎您!');return document.MM_returnValue">
<div class="con">
    <div class="daohang">
    <ul>
    <li><a style="color: #f3e7cf"><b>首页</b></a></li>
    <li><a href="lishi.html">历史文化</a></li>
    <li><a href="#" onMouseOver="mopen('m')" onMouseOut="mclosetime()">著名人物</a>
        <div id="m" onMouseOver="mcancelclosetime()" onMouseOut="mclosetime()">
        <a href="gdrw.html">古代人物</a>
        <a href="xdrw.html">现代人物</a>
        </div>
    </li>
    <li><a href="fengjing.html">风景名胜</a></li>
    <li><a href="liuyan.html">在线留言</a></li>
    <li><a href="mailto:123456@qq.com">邮件联系</a></li>
    </ul>
    </div>
    <div class="zhengwen">
    <div class="datu"><img src="images/datu.jpg"></div>
    <div class="leftwen"><div class="bt"><span>菏泽简介</span></div>
    <p>菏泽原系天然古泽,济水所汇,菏水所出,连通古济水、泗水两大水系,唐更名龙池,清称夏月湖。清朝雍正十三年(1735年)升曹州为府,附郭设县,因南有“菏山”,北有“雷泽”,赐名菏泽。是著名的中国牡丹之都、武术之乡、书画之乡、戏曲之乡、民间艺术之乡。</p>
    <p>菏泽历史悠久,文化底蕴深厚,享有“天下之中”的美誉。上古时期济濮流域古泽薮遍布,《禹贡》九泽之菏泽、雷泽、大野泽、孟渚泽、皆在境内,历史上居于圣神地位。人文始祖伏羲、东夷之帝少昊、贤明君主帝舜、兵主战神蚩尤、改革家吴起、军事家孙膑、农学家氾胜之、经济学家刘晏、文学家温子升等大批圣贤,都出生在这里,刘邦登基称帝、曹操成就霸业、黄巢起义、宋江聚义等都发生在菏泽。</p>
    </div>
   <div class="rightwen"><div class="bt"><span> <marquee width="280px"  behavior=alternate direction=left align=middle border=1>
  中国牡丹之都-菏泽欢迎您!                                     
  </marquee></span></div>
    <p>
      
<video src="video/video.mp4" controls="controls" width="300" height="210">
your browser does not support the video tag
</video>
    </p>
   
</div>
     <div class="jd"><div class="bt"><span>风景名胜</span></div>
     <ul >
     <li><p><img src="images/fja.jpg" width="216px" height="144px"/></p><p>曹州牡丹园</p></li>
     <li><p><img src="images/fjb.jpg" width="216px" height="144px"/></p><p>曹州百花园</p></li>
     <li><p><img src="images/fjc.jpg" width="216px" height="144px"/></p><p>古今园</p></li>
     <li><p><img src="images/fjd.jpg" width="216px" height="144px"/></p><p>单县百狮坊</p></li>
     <li><p><img src="images/fje.jpg" width="216px" height="144px"/></p><p>赵王河公园</p></li>
     </ul>
   </div>
   <div class="foot"><div class="bt">
     <span>  <form name="form" id="form">
       <select name="jumpMenu" id="jumpMenu">
         <option value="https://baike.baidu.com/item/菏泽/286984">菏泽百科</option>
         <option value="http://www.heze.gov.cn">菏泽官网</option>
       </select>
       <input type="button" name="go_button" id= "go_button" value="前往" οnclick="MM_jumpMenuGo('jumpMenu','parent',0)" />
     </form>
   </span><a href="video/wj.rar">文件下载</a></div>  </div>
   </div>
</div>
</body>
</html>

......

2.CSS

代码如下(节选示例):

@charset "utf-8";
body {font-size:12px;color:#666;font-family:"微软雅黑";margin: 0;padding: 0;background-image: url(../images/bg.jpg);}
.con{width:1200px; margin:0 auto;}
.daohang{background: #de6878;height: 50px; }
.daohang li {float: left; width: 180px; line-height: 50px; list-style: none; text-align: center; }
.daohang li a { color: #f3e7cf; text-decoration: none; font-size: 14px; }
.daohang li a:hover {font-weight: bold; }
.daohang div{position: absolute;visibility: hidden;margin: 0;padding: 0;}
.daohang div a{position: relative;display: block;margin: 0;width: 160px;white-space: nowrap;text-align: center;text-decoration: none;background: #eee;color: #000;}
.daohang div a:hover{background: #9c222d;color: #f2f2f2}
.zhengwen{height:1150px;}
.datu{float:left;width:1200px;}
.leftwen{float:left;width:850px;height: 290px;margin-top:20px;color: #000;font-size:14px;line-height: 30px; background: #f2f2f2; }
.leftwen p{padding:0 10px 0 10px;color:#000;line-height:30px;font-size: 14px;}
.leftwen .bt{width:850px;height:50px;background-color:#de6878}
.leftwen .bt span{margin-left:20px; line-height:50px;color: #f3e7cf;font-weight: bold;font-size: 14px;}
.rightwen{float:right;width:320px;height: 290px;margin-top:20px;color: #000;font-size:14px;line-height: 30px; background: #f2f2f2; }
.rightwen p{padding:0 10px 0 10px;color:#000;line-height:30px;font-size: 14px;}
.rightwen .bt{width:320px;height:50px;background-color:#de6878}
.rightwen .bt span{margin-left:20px; line-height:50px;color: #f3e7cf;font-weight: bold;font-size: 14px;}
.jd{float:left; width:1200px;height: 290px;margin-top:20px;color: #000;font-size:14px;line-height: 30px; background: #f2f2f2; }
.jd p{color:#000;line-height:30px;font-size: 14px;}
.jd .bt{width:1200px;height:50px;background-color:#de6878}
.jd .bt span{margin-left:20px; line-height:50px;color: #f3e7cf;font-weight: bold;font-size: 14px;}
.jd ul{width:1200px;}
.jd ul li{width:216px;float:left; list-style-type:none; padding-right:10px; text-align:center;}
.ziye{padding:20px 0;background:#f2f2f2;}
.ziye p{padding:0 20px;line-height:30px;color: #000;font-size: 14px;}
.leftrw {float:left;width:120px;height:300px;margin-top:20px; }
.leftrw .bt{width:120px;height:50px;background-color:#de6878;text-align:center;}
.leftrw .bt span a{line-height:50px;color: #f3e7cf;font-size: 14px;}
.leftrw .dh{width:120px;height:80px;background-color:#9c222d;text-align:center;}
.leftrw .dh span{line-height:80px;color: #f2f2f2;font-size: 14px;}
.rightrw{float:right;width:1050px;margin-top:20px;color: #000;font-size:14px;line-height: 30px; background: #f2f2f2; }
.rightrw p{padding:0 10px 0 10px;color:#000;line-height:30px;font-size: 14px;}
.rightrw .bt{width:1050px;height:50px;background-color:#de6878}
.rightrw .bt span{margin-left:20px; line-height:50px;color: #f3e7cf;font-weight: bold;font-size: 14px;}
.foot{float:left; width:1200px;height:80px;margin-top:20px; }
.foot .bt{width:1200px;height:50px;background-color:#de6878;}
.foot .bt span{float:left;margin-left:20px; line-height:50px;color: #f3e7cf;font-weight: bold;font-size: 14px;}
.foot .bt a{float:right;margin-right:20px; line-height:50px;color: #f3e7cf;font-weight: bold;font-size: 14px;}

......

3.JS

代码如下(节选示例):

var timeout = 500;
var closetimer= 0;
var ddmenuitem = 0;
function mopen(id)
{   mcancelclosetime();
    if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
    ddmenuitem = document.getElementById(id);
    ddmenuitem.style.visibility = 'visible';
 }
function mclose()
{   if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; }
function mclosetime()
{    closetimer = window.setTimeout(mclose, timeout); } 
function mcancelclosetime()
{    if(closetimer)
    {  window.clearTimeout(closetimer);
       closetimer = null;}
 }
document.onclick = mclose; 

......


五、更多推荐

关注作者|获取更多源码(2000+个网页源码)|优质文章】;您的支持是我创作的动力!看到这里就【点赞收藏博文】,三连支持下吧,3Q!

Web前端网页制作、整站模板、3D炫酷效果、图片展示、文字效果、大学生毕业HTML、期末大作业模板案例等技术内容,有兴趣的联系我交流学习!

更多优质博客文章、网页模板点击以下链接查阅:仙女网页设计-CSDN博客


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值