我正在尝试制作两个位于底部中心的选项卡,当单击时,整个内容会上升并显示内容 - 就像他们在 www.hunterandsand.com 上所做的那样,但我似乎无法弄清楚他们是如何使用代码做到的他们有。还有他们是如何让它变得透明的。任何帮助都会非常有用,谢谢。
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="description" content="Beauchamp's Corporate offers a unique service for clients wishing to design a special product for their business.">
<title>Beauchamp's Corporate</title>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#maximage').cycle({
fx: 'scrollHorz', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
speed: 1000,
timeout: 7000,
prev: '#arrow_left',
next: '#arrow_right'
});
</script>
</script>
<body>
<div id="logo"><img src="images/logo1.jpg" alt="Beauchamp's Corporate"></div>
<div id="cycle-loader">
</div>
<div id="maximage">
<img src="images/boat1.jpg" alt="" />
<img src="images/car1.jpg" alt="" />
<img src="images/dock1.jpg" alt="" />
<img src="images/glass1.jpg" alt="" />
<img src="images/hotel1.jpg" alt="" />
<img src="images/table1.jpg" alt="" />
</div>
<a href="" id="arrow_left" class="button" title="Previous Photo"></a>
<a href="" id="arrow_right" class="button" title="Next Photo"></a>
<div id="pages">
<div id="nav">
<ul id="menu">
<li id="services">Our Product</li>
<li id="contact">Contact Us</li>
</ul>
</div>
<div id="content">
<div id="copy">
<div class="page product">
<p>We offer a consultation meeting in which we discuss client requirements, design ideas, packaging options, budgets, lead times and more...
<br />
We have a number of designs already in production which we can edit & brand with the client logo or...
<br />
Following this initial meeting, we produce product drawings, quotes, source leather samples and materials specific to this product. Samples can be produced once drawings have been approved by the client.
<br />
Lead times, delivery schedules and product prices are unique to the client and indervidually calculated according to the specific client reqirements.
<br />
Where possible Beauchamp's aims to produce products in one of our UK factories however should it be required we will use factories further afield. </p>
</div>
<div class="page contact">
<p>For further information:
<br />
Email: <a href="info@beauchampsoflondon.com">info@beauchampsoflondon.com</a>
<br />
Address: 35 Bruton Street, London, W1J 6QY
<br />
Website: <a href="www.beauchampscorporate.com">www.beauchampscorporate.com</a>
<br />
Fashion Accessories Website: <a href="www.beauchampsoflondon.com">www.beauchampsoflondon.com</a></p>
</div>
</div>
</div>
</div>
</body>
</html>
CSS:
#logo{
width:180px;
height:113px;
margin-left:auto;
margin-right:auto;
margin-top:-10px;
}
a.button {
display:block;
width:50px;
height:50px;
margin-top:200px;
opacity: 0.6%;
}
a#arrow_left{
float:left;
background: transparent url('../images/arrowleft1.jpg') no-repeat;
position: relative;
z-index: 100;
}
a#arrow_right{
float:right;
background: transparent url('../images/arrowright1.jpg') no-repeat;
position: relative;
z-index: 100;
}
#maximage {
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -5000;
}
#maximage img {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -5000;
}
li {
list-style:none;
}
看到它运行 - www.musidoraland.co.uk