页面模板

iindex.html

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>云首页</title>
<script src="js/jquery-1.11.3.js"></script>
<link href="css/common.css" type="text/css" rel="stylesheet"/>
<link href="css/index.css" type="text/css" rel="stylesheet"/>
<style>
    .menuBar2 a{
        color:#F83;
    }
    .menuBar3 a{
        color:#666;
    }
</style>
<script type="text/javascript">
    $(function(){
        $(".dd1").css("font-size","14px");       
        $("#selectBtn").click(function(){           
            $("#img1").fadeIn("slow");
            $("#img2,#img3").hide();
            $("#selectBtn").empty().html("<img src='image/sel1.png'/>");
            $("#selectBtn2,#selectBtn3").empty().html("<img src='image/sel2.png'/>");
        });
        $("#selectBtn2").click(function(){
            $("#img2").fadeIn("slow");
            $("#img1,#img3").hide();
            $("#selectBtn2").empty().html("<img src='image/sel1.png'/>");
            $("#selectBtn,#selectBtn3").empty().html("<img src='image/sel2.png'/>");   
        });
        $("#selectBtn3").click(function(){
            $("#img3").fadeIn("slow");
            $("#img1,#img2").hide();
            $("#selectBtn3").empty().html("<img src='image/sel1.png'/>");
            $("#selectBtn,#selectBtn2").empty().html("<img src='image/sel2.png'/>");   
        });
        $("#btn4").hover(
            function(){           
               $("#btn4 img").toggle();
            },           
            function(){           
               $("#btn4 img").toggle();
            }
        );
        $("#btn4").click(function(){
            location.href="app/buyCloud.html";
        });
        $("#btn6").hover(
            function(){           
               $("#btn6 img").toggle();
            },           
            function(){           
               $("#btn6 img").toggle();
            }
        );
        $("#btn6").click(function(){
            location.href="#";
        });
        $("#btn7").hover(
            function(){           
               $("#btn7 img").toggle();
            },           
            function(){           
               $("#btn7 img").toggle();
            }
        );
        $("#btn7").click(function(){
            location.href="#";
        });
        $("#center").hover(
            function(){           
               $("#center img").toggle();
            },           
            function(){           
               $("#center img").toggle();
            }
        );
        $("#center").click(function(){
            location.href="#";
        });
        $(".p1").hover(
            function(){           
               $(this).children("img").toggle();
            },           
            function(){           
               $(this).children("img").toggle();
            }
        );
        $(".p1").click(function(){
            location.href="#";
        });
        var w1 = $(window).width();
        var w2 = $("#main").width();
        var w3 = (w1 - w2)/2;
        var h = $("#main").height() + 20;
        var h1 = $("#img1").height();
        var h2 = 500 - $("#img1").height();
        $(".foot").css("margin-top",h - h2);
        $(".bannerBar,.bannerBar2").css("height",h1);
        if(w1 >= w2){
            $("#main").css("margin-left",w3);
            $("#selectBtn").css("left",w3);
            $("#selectBtn").css("top",450 - h2);
            $("#selectBtn2").css("left",w3 + 66);
            $("#selectBtn2").css("top",450 - h2);
            $("#selectBtn3").css("left",w3 + 132);
            $("#selectBtn3").css("top",450 - h2);
            $("#clickA").css("margin-left",w3 + 470);
            $("#menuTopBar").css("margin-left",w3 + 270);
            $("#clickB").css("margin-left",w3 + 595);
            $("#menuTopBar2").css("margin-left",w3 + 420);
            $("#clickC").css("margin-left",w3 + 725);
            $("#menuTopBar3").css("margin-left",w3 + 670);
        }else{
            $("#main").css("margin-left",0);
            $("#selectBtn").css("left",0);
            $("#selectBtn").css("top",450 - h2);
            $("#selectBtn2").css("left",66);
            $("#selectBtn2").css("top",450 - h2);
            $("#selectBtn3").css("left",132);
            $("#selectBtn3").css("top",450 - h2);
            $("#clickA").css("margin-left",470);
            $("#menuTopBar").css("margin-left",270);
            $("#clickB").css("margin-left",595);
            $("#menuTopBar2").css("margin-left",420);
            $("#clickC").css("margin-left",725);
            $("#menuTopBar3").css("margin-left",670);
        }
        $(window).resize(function(){
            var w1 = $(window).width();
            var w2 = $("#main").width();
            var h1 = $("#img1").height();
            var h2 = 500 - $("#img1").height();
            $(".foot").css("margin-top",h - h2);
            $(".bannerBar,.bannerBar2").css("height",h1);               
            var w3 = (w1 - w2)/2;
            if(w1 >= w2){
                $("#main").css("margin-left",w3);
                $("#selectBtn").css("left",w3);
                $("#selectBtn").css("top",450 - h2);
                $("#selectBtn2").css("left",w3 + 66);
                $("#selectBtn2").css("top",450 - h2);
                $("#selectBtn3").css("left",w3 + 132);
                $("#selectBtn3").css("top",450 - h2);
                $("#clickA").css("margin-left",w3 + 470);
                $("#menuTopBar").css("margin-left",w3 + 270);
                $("#clickB").css("margin-left",w3 + 595);
                $("#menuTopBar2").css("margin-left",w3 + 420);
                $("#clickC").css("margin-left",w3 + 725);   
                $("#menuTopBar3").css("margin-left",w3 + 670);                   
            }else{
                $("#main").css("margin-left",0);
                $("#selectBtn").css("left",0);
                $("#selectBtn").css("top",450 - h2);
                $("#selectBtn2").css("left",66);
                $("#selectBtn2").css("top",450 - h2);
                $("#selectBtn3").css("left",132);
                $("#selectBtn3").css("top",450 - h2);
                $("#clickA").css("margin-left",470);
                $("#menuTopBar").css("margin-left",270);   
                $("#clickB").css("margin-left",595);   
                $("#menuTopBar2").css("margin-left",420);   
                $("#clickC").css("margin-left",725);   
                $("#menuTopBar3").css("margin-left",670);
            }
            $("#cloudBtn").hover(
                function(){                               
                    $("#clickA,#menuTopBar").show();
                    $("#clickB,#menuTopBar2").hide();
                    $("#clickC,#menuTopBar3").hide();
                },           
                function(){}
            );
            $("#menuTopBar").hover(
                function(){},           
                function(){           
                    $("#clickA,#menuTopBar").hide();
                }
            );
            $("#caseBtn").hover(
                function(){   
                    $("#clickA,#menuTopBar").hide();                           
                    $("#clickB,#menuTopBar2").show();
                    $("#clickC,#menuTopBar3").hide();
                },           
                function(){}
            );
            $("#menuTopBar2").hover(
                function(){},           
                function(){           
                    $("#clickB,#menuTopBar2").hide();
                }
            );
            $("#storeBtn").hover(
                function(){   
                    $("#clickA,#menuTopBar").hide();
                    $("#clickB,#menuTopBar2").hide();                           
                    $("#clickC,#menuTopBar3").show();
                },           
                function(){}
            );
            $("#menuTopBar3").hover(
                function(){},           
                function(){           
                    $("#clickC,#menuTopBar3").hide();
                }
            );       
        });
        $("#cloudBtn").hover(
            function(){       
                $("#clickA,#menuTopBar").show();
                $("#clickB,#menuTopBar2").hide();
                $("#clickC,#menuTopBar3").hide();
            },           
            function(){}
        );
        $("#menuTopBar").hover(
            function(){},           
            function(){           
                $("#clickA,#menuTopBar").hide();
            }
        );
        $("#caseBtn").hover(
            function(){   
                $("#clickA,#menuTopBar").hide();                           
                $("#clickB,#menuTopBar2").show();
                $("#clickC,#menuTopBar3").hide();
            },           
            function(){}
        );
        $("#menuTopBar2").hover(
            function(){},           
            function(){           
                $("#clickB,#menuTopBar2").hide();
            }
        );   
        $("#storeBtn").hover(
            function(){   
                $("#clickA,#menuTopBar").hide();
                $("#clickB,#menuTopBar2").hide();                           
                $("#clickC,#menuTopBar3").show();
            },           
            function(){}
        );
        $("#menuTopBar3").hover(
            function(){},           
            function(){           
                $("#clickC,#menuTopBar3").hide();
            }
        );
        $("#homeBtn,#cooBtn,#aboutBtn").hover(
            function(){
                $("#clickA,#menuTopBar").hide();
                $("#clickB,#menuTopBar2").hide();
                $("#clickC,#menuTopBar3").hide();
            },           
            function(){}
        );
        $(".menuBar3 a").hover(
            function(){
                $(this).css("color","#008fd5");
            },           
            function(){           
                $(this).css("color","#666");
            }
        );
    })
</script>
</head>
<body>
    <div class="background">
        <ul class="backBar"></ul>
    </div>
    <div class="bannerBar">
        <a href="app/buyCloud.html">
            <img id="img1" src="image/ad.jpg" width="100%"/>
        </a>
        <a href="#">
            <img id="img2" src="image/ad2.jpg" width="100%" style="display:none"/>
        </a>
        <a href="#">
            <img id="img3" src="image/ad3.jpg" width="100%" style="display:none"/>
        </a>
        <a id="selectBtn" class="selectBtn"><img src="image/sel1.png"/></a>
        <a id="selectBtn2" class="selectBtn"><img src="image/sel2.png"/></a>
        <a id="selectBtn3" class="selectBtn"><img src="image/sel2.png"/></a>
    </div>
    <div id="clickA" class="click1" style="display:none;"><img src="image/click.png"/></div>
    <div id="clickB" class="click1" style="display:none;"><img src="image/click.png"/></div>
    <div id="clickC" class="click1" style="display:none;"><img src="image/click.png"/></div>
    <div id="menuTopBar" class="menuBar shadow" style="display:none;">
        <ul>
            <li class="menuBar2" style="margin-top:0;">
                <a href="app/elasticCloud.html">弹性计算云</a>
            </li>
            <li class="menuBar3">
                <a href="app/buyCloud.html">云服务器</a>
            </li>
        </ul>
        <ul style="border-left:#ccc dashed 1px;border-right:#ccc dashed 1px;">
            <li class="menuBar2" style="margin-top:0;">
                <a href="#">云存储</a>
            </li>
            <li class="menuBar3">
                <a href="app/objectStore.html">对象存储</a>
            </li>
            <li class="menuBar3">
                <a href="#">云数据库</a>
            </li>
        </ul>
        <ul>
            <li class="menuBar2" style="margin-top:0;">
                <a href="#">数据中心产品</a>
            </li>
            <li class="menuBar3">
                <a href="#">虚拟数据中心</a>
            </li>
        </ul>
    </div>
    <div id="menuTopBar2" class="menuBar shadow" style="display:none;">
        <ul style="border-right:#ccc dashed 1px;">
            <li class="menuBar2" style="margin-top:0;">
                <a href="#">行业解决方案</a>
            </li>
            <li class="menuBar3">
                <a href="#">政务云</a>
            </li>
            <li class="menuBar3">
                <a href="#">教育云</a>
            </li>
        </ul>
        <ul>
            <li class="menuBar2" style="margin-top:0;">
                <a href="#">服务解决方案</a>
            </li>
            <li class="menuBar3">
                <a href="#">数据备份/归档解决方案</a>
            </li>
        </ul>
    </div>
    <div id="menuTopBar3" class="menuBar shadow" style="display:none;">
        <ul>
            <li class="menuBar2" style="margin-top:0;">
                <a href="#">日常办公</a>
            </li>
            <li class="menuBar3">
                <a href="#">移动办公 MOA</a>
            </li>
            <li class="menuBar3">
                <a href="#">视频会议 VCS</a>
            </li>
        </ul>
    </div>
    <div id="main" class="mainDiv">
        <ul class="topBar">
            <li class="topLeftBar">
                <img src="image/logo.png"/>
            </li>
            <li class="topRightBar">
                <span class="span1">
                    <a href="app/login.html" class="tips">登录</a> &nbsp;|&nbsp;
                    <a href="app/register.html" class="tips">注册</a> &nbsp;|&nbsp;
                    <a href="app/control.html" class="tips" style="color:#F26522">我的控制台</a>
                </span>
                <span class="span2">
                    <a href="index.html" class="active" id="homeBtn">首页</a>
                    <a href="#" class="menu" id="cloudBtn">云产品</a>
                    <a href="#" class="menu" id="caseBtn">解决方案</a>
                    <a href="#" class="menu" id="storeBtn">应用商城</a>
                    <a href="app/cooperation.html" class="menu" id="cooBtn">合作</a>
                    <a href="app/aboutUs.html" class="menu" style="margin-right:0;" id="aboutBtn">关于我们</a>   
                </span>
            </li>
        </ul>
        <ul class="bannerBar2">                       
        </ul>
        <ul class="contentDiv">
            <li class="contentLeftDiv">
                <span class="contentLeftSpan">
                    <img src="image/img1.jpg"/>
                </span>
                <span class="contentRightSpan">
                    <div>
                        <div class="dt1" style="font-size:21px;">解决方案</div>
                        <div class="dd1">
                            <p class="p1">
                                <img src="image/btn1.png"/>
                                <img src="image/btn11.png" style="display:none;"/>
                            </p>
                            <p class="p3"><a href="#">政务云</a></p>
                        </div>
                        <p class="clear"></p>
                        <div class="dd1">
                            <p class="p1">
                                <img src="image/btn2.png"/>
                                <img src="image/btn21.png" style="display:none;"/>
                            </p>
                            <p class="p3"><a href="#">教育云</a></p>
                        </div>
                    </div>
                </span>
                <span class="contentLeftSpan2">
                    <img src="image/img2.jpg"/>
                </span>
                <span class="contentRightSpan2">
                    <div>
                        <div class="dt1" style="font-size:21px;">应用商城</div>
                        <div class="dd1">
                            <p class="p1">
                                <img src="image/moa.png"/>
                                <img src="image/moa3.png" style="display:none;"/>
                            </p>
                            <p class="p2"><a href="#">移动办公</a><br/>移动办公,一手掌握</p>
                        </div>
                        <p class="clear"></p>
                        <div class="dd1">
                            <p class="p1">
                                <img src="image/video.png"/>
                                <img src="image/video2.png" style="display:none;"/>
                            </p>
                            <p class="p2"><a href="#">视频会议</a><br/>多方视频,沟通无碍</p>
                        </div>
                    </div>
                </span>
            </li>
            <li class="contentRightDiv">
                <span class="contentTopSpan">
                    <div>
                        <div class="dt1" style="font-size:21px;">云产品</div>
                        <div class="dd1">基础服务:云托管,提供7*24可靠托管服务;弹性计算云,申请的云主机可以按需进行升级或降级弹性伸缩;VDC...</div>
                        <div class="dd1" style="width:100%;">增值服务:数据迁移、数据备份与容灾、业务咨询</div>                       
                        <div class="dd1">
                            <p id="btn">
                                <span id="btn4" class="btnDiv2">
                                    <img src="image/btn4.png"/>
                                    <img src="image/btn41.png" style="display:none;"/>
                                </span>
                                <span id="btn6" class="btnDiv2" style="margin-top:10px;">
                                    <img src="image/btn6.png"/>
                                    <img src="image/btn61.png" style="display:none;"/>
                                </span>
                                <span id="btn7" class="btnDiv2" style="margin-top:10px;">
                                    <img src="image/btn7.png"/>
                                    <img src="image/btn71.png" style="display:none;"/>
                                </span>
                                <span id="center" class="btnDiv2" style="margin-top:10px;">
                                    <img src="image/center.png"/>
                                    <img src="image/center2.png" style="display:none;"/>
                                </span>
                            </p>
                        </div>
                    </div>
                </span>
            </li>
        </ul>
    </div>
    <div class="foot"> © 1985-2015 版权所有</div>
</body>
</html>

index.css

 

/* CSS Document */
.bannerBar{
    margin-top:82px;
    min-width:1000px;
    position:absolute;
    z-index:3;
}
.bannerBar2{
    height:500px;
    position:relative;
}
.selectBtn{
    position:absolute;
    z-index:2;
}
.contentDiv{
    margin-top:30px;
    min-width:1000px;
    float:left;
}
.contentLeftDiv{
    width:490px;
    height:420px;
    float:left;
}
.contentRightDiv{
    width:490px;
    height:420px;
    float:right;
    background-color:#00aae9;
}
.contentLeftSpan2 img{
    float:left;
}
.contentLeftSpan2{
    float:left;
    margin-top:20px;
}
.contentLeftSpan,.contentLeftSpan img,.contentLeftSpan2 img{
    float:left;
}
.contentRightSpan{
    width:240px;
    height:200px;
    float:left;
    background-color:#00bb96;
    color:#fff;
    font-size:13px;
    text-align:left;
    padding-left:25px;
    padding-right:25px;
}
.contentRightSpan2{
    width:240px;
    height:200px;
    float:left;
    background-color:#8dc100;
    color:#fff;
    font-size:13px;
    text-align:left;
    padding-left:25px;
    padding-right:25px;
    margin-top:20px;
}
.contentTopSpan{
    float:left;
    width:440px;
    color:#fff;
    font-size:13px;
    text-align:left;
    padding-left:25px;
    padding-right:25px;
}
.buy{
    color:#fff;
}
.buy:hover{
    color:#65ccff;
    text-decoration:none;
    cursor:pointer;
}
.dt1{
    margin-top:20px;
    font-weight:bold;
}
.dd1{
    margin-left:0;
    margin-top:15px;
    float:left;
}
.dd2{
    margin-left:0;
    margin-top:25px;
    float:left;
}
.p1{
    float:left;
}
.p1 img{
    cursor:pointer;
}
.p2{
    float:left;
    margin-left:25px;
}
.p2 a{
    font-size:17px;
}
.p3{
    float:left;
    margin-left:25px;
    margin-top:12px;
}
.p3 a{
    font-size:17px;
}
.ddLeftDiv{
    margin-top:30px;
    padding-right:20px;
    width:110px;
    height:310px;
    float:left;
    border-right:#fff dashed 1px;
}
.btnDiv{
    width:110px;
    height:110px;
    float:left;
    margin-left:25px;
    margin-top:5px;
    cursor:pointer;
}
.btnDiv2{
    width:110px;
    height:110px;
    float:left;
    margin-left:20px;
    margin-top:10px;
    cursor:pointer;
}
.ddRightTopDiv{
    margin-top:30px;
    margin-left:10px;
    padding-bottom:10px;
    border-bottom:#fff dashed 1px;
    float:left;
}
.ddRightBottomDiv{
    margin-top:20px;
    margin-left:10px;
    float:left;
}
.btnSpan{   
    font-size:17px;
    padding-left:10px;
    width:100%;
    float:left;
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值