仿yahoo首页特色服务内容切换效果
from: http://www.jscode.cn/jave_page/300710716.htm
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
5
<title>网页特效观止|www.jscode.cn|---仿yahoo首页特色服务内容切换效果</title>
6
</head>
7
<style type="text/css">
8
/* common styling */
9
10
/* Set up the default font and ovrall size to include image */
11
body {
12
background: #fff;
13
font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
14
font-size: 12px;
15
}
16
#tabs {width:400px; text-align:center; background: url(images/icon/top.gif); margin:30px 0 0 175px; position:absolute; z-index:500;}
17
#tabs ul {padding:0; margin:0; width:400px; list-style:none; position:relative;}
18
#tabs ul li {float:left; display:inline; width:125px; height:53px; margin:0 4px;}
19
#tabs ul li a.outer {display:block; width:125px; height:49px; border-bottom:1px solid #9c9c9c; text-align:center; line-height:45px; text-decoration:none; text-indent:50px; color:#464; font-weight:bold; margin-bottom:3px; font-size:11px;}
20
21
#tabs ul li a.one {background:#fff url(images/icon/world.jpg) top left no-repeat;}
22
#tabs ul li a.two {background:#fff url(images/icon/key.jpg) top left no-repeat;}
23
#tabs ul li a.three {background:#fff url(images/icon/mail.jpg) top left no-repeat;}
24
#tabs ul li a.four {background:#fff url(images/icon/search.jpg) top left no-repeat;}
25
#tabs ul li a.five {background:#fff url(images/icon/profile.jpg) top left no-repeat;}
26
#tabs ul li a.six {background:#fff url(images/icon/draw.jpg) top left no-repeat;}
27
#tabs ul li div {display:none;}
28
29
#tabs ul li:hover {padding-bottom:132px; border-bottom:1px solid #fff; color:#000; margin-bottom:0;}
30
31
#tabs ul li:hover > a.outer {color:#000; background-position:0 -55px; height:55px; cursor:default;}
32
33
* html #tabs ul li a.outer:hover {padding-bottom:130px; border-bottom:1px solid #fff; height:55px; color:#000; margin-bottom:0;background-position:0 -55px; height:55px; cursor:default;}
34
35
#tabs ul li:hover div {display:block; padding:5px; position:absolute; left:4px; top:55px; width:381px; height:118px; border-bottom:3px solid #fff;}
36
#tabs ul li a:hover div {display:block; padding:5px; position:absolute; left:4px; top:55px; width:381px; height:118px; border-bottom:3px solid #fff;}
37
38
#tabs ul li a:hover div.tab_left,
39
#tabs ul li:hover div.tab_left
40
{background:#fff url(images/icon/tab_left.gif);}
41
42
#tabs ul li a:hover div.tab_center,
43
#tabs ul li:hover div.tab_center
44
{background:#fff url(images/icon/tab_center.gif);}
45
46
#tabs ul li a:hover div.tab_right,
47
#tabs ul li:hover div.tab_right
48
{background:#fff url(images/icon/tab_right.gif);}
49
50
.clear {clear:both; height:0; line-height:0; overflow:hidden;}
51
#tabs span.base {display:block; height:20px;font-size:10px; color:#bc8f8f; background:url(images/icon/bottom.gif) bottom;}
52
#tabs div h5 {font-size:12px; margin-bottom:5px;}
53
#tabs div p {font-weight:normal; text-align:left; color:#000; margin-top:2px;}
54
#tabs div a img {border:0;}
55
#tabs div img.image {float:left; border:0; margin-top:-35px; margin-right:5px;}
56
#tabs div a.unlock {background:url(images/icon/unlock.gif); display:block; width:30px; height:30px; margin:0 auto;}
57
#tabs div a:hover.unlock img {visibility:hidden;}
58
#tabs p.bold {color:#069; padding-top:5px;}
59
* html #tabs p.fire {margin-top:-15px;}
60
* html #tabs form {margin-top:-20px;}
61
#tabs p.buttons {text-align:center;}
62
</style>
63
<body>
64
65
<div id="tabs">
66
<p class="bold">Mini tabbed pages - 9th February 2007</p>
67
<ul>
68
<li><a href="#nogo" class="one outer">WORLD<!--[if IE 7]><!--></a><!--<![endif]-->
69
<!--[if lte IE 6]><table><tr><td><![endif]-->
70
<div class="tab_left">
71
<h5>World Wide Web</h5>
72
<p>This area can hold anything you like<a href="index.html">Main Menu</a>.</p>
73
</div>
74
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
75
</li>
76
<li><a href="#nogo" class="two outer">UNLOCK<!--[if IE 7]><!--></a><!--<![endif]-->
77
<!--[if lte IE 6]><table><tr><td><![endif]-->
78
<div class="tab_center">
79
<h5>Unlock the Secrets</h5>
80
<a href="http://www.w3.org/Style/CSS/" class="unlock" title="Unlock the secrets of CSS at w3.org"><img src="images/icon/lock.gif" alt="Locked" title="Locked" /></a>
81
</div>
82
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
83
</li>
84
<li><a href="#nogo" class="three outer">MAIL<!--[if IE 7]><!--></a><!--<![endif]-->
85
<!--[if lte IE 6]><table><tr><td><![endif]-->
86
<div class="tab_right">
87
<h5>Email</h5>
88
<p>Maybe a link to your emails or a form asking to login to<a href="http://www.cssplay.co.uk/w3c/contact.html%22%3EContact Page</a>.</p>
89
</div>
90
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
91
</li>
92
</ul>
93
<br class="clear" />
94
<ul>
95
<li><a href="#nogo" class="four outer">SEARCH<!--[if IE 7]><!--></a><!--<![endif]-->
96
<!--[if lte IE 6]><table><tr><td><![endif]-->
97
<div class="tab_left">
98
<h5>Search This Site</h5>
99
<p>You can add a search form here.</p>
100
</div>
101
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
102
</li>
103
<li><a href="#nogo" class="five outer">PROFILE<!--[if IE 7]><!--></a><!--<![endif]-->
104
<!--[if lte IE 6]><table><tr><td><![endif]-->
105
<div class="tab_center">
106
<h5>Your Profile</h5>
107
<form id="two" action="
" method="post">
108
<fieldset id="personal">
109
<label for="login">login : </label>
110
<input name="login" id="login" type="text" tabindex="1" />
111
</fieldset>
112
<p class="buttons">
113
<input id="button1" type="submit" value="Send" />
114
<input id="button2" type="reset" value="Reset" />
115
</p>
116
</form>
117
</div>
118
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
119
</li>
120
<li><a href="#nogo" class="six outer">DRAW<!--[if IE 7]><!--></a><!--<![endif]-->
121
<!--[if lte IE 6]><table><tr><td><![endif]-->
122
<div class="tab_right">
123
<h5>Learn how to Draw</h5>
124
<a href="http://www.adobe.com/products/fireworks/%22%3E%3Cimg class="image" src="images/icon/fireworks.gif" alt="Adobe Fireworks 8" title="Adobe Firerworks 8" /></a>
125
<p class="fire">Get top-quality design results. </p>
126
</div>
127
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
128
</li>
129
</ul>
130
<br class="clear" />
131
<span class="base">©2007 Stu Nicholls - All rights reserved</span>
132
</div>
133
134
</body>
135
</html>
136
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">2
<html xmlns="http://www.w3.org/1999/xhtml">3
<head>4
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />5
<title>网页特效观止|www.jscode.cn|---仿yahoo首页特色服务内容切换效果</title>6
</head>7
<style type="text/css">8
/* common styling */9

10
/* Set up the default font and ovrall size to include image */11
body {12
background: #fff;13
font-family: "Lucida Grande", Helvetica, Arial, sans-serif;14
font-size: 12px;15
}16
#tabs {width:400px; text-align:center; background: url(images/icon/top.gif); margin:30px 0 0 175px; position:absolute; z-index:500;}17
#tabs ul {padding:0; margin:0; width:400px; list-style:none; position:relative;}18
#tabs ul li {float:left; display:inline; width:125px; height:53px; margin:0 4px;}19
#tabs ul li a.outer {display:block; width:125px; height:49px; border-bottom:1px solid #9c9c9c; text-align:center; line-height:45px; text-decoration:none; text-indent:50px; color:#464; font-weight:bold; margin-bottom:3px; font-size:11px;}20

21
#tabs ul li a.one {background:#fff url(images/icon/world.jpg) top left no-repeat;}22
#tabs ul li a.two {background:#fff url(images/icon/key.jpg) top left no-repeat;}23
#tabs ul li a.three {background:#fff url(images/icon/mail.jpg) top left no-repeat;}24
#tabs ul li a.four {background:#fff url(images/icon/search.jpg) top left no-repeat;}25
#tabs ul li a.five {background:#fff url(images/icon/profile.jpg) top left no-repeat;}26
#tabs ul li a.six {background:#fff url(images/icon/draw.jpg) top left no-repeat;}27
#tabs ul li div {display:none;}28

29
#tabs ul li:hover {padding-bottom:132px; border-bottom:1px solid #fff; color:#000; margin-bottom:0;}30

31
#tabs ul li:hover > a.outer {color:#000; background-position:0 -55px; height:55px; cursor:default;}32

33
* html #tabs ul li a.outer:hover {padding-bottom:130px; border-bottom:1px solid #fff; height:55px; color:#000; margin-bottom:0;background-position:0 -55px; height:55px; cursor:default;}34

35
#tabs ul li:hover div {display:block; padding:5px; position:absolute; left:4px; top:55px; width:381px; height:118px; border-bottom:3px solid #fff;}36
#tabs ul li a:hover div {display:block; padding:5px; position:absolute; left:4px; top:55px; width:381px; height:118px; border-bottom:3px solid #fff;}37

38
#tabs ul li a:hover div.tab_left,39
#tabs ul li:hover div.tab_left40
{background:#fff url(images/icon/tab_left.gif);}41

42
#tabs ul li a:hover div.tab_center,43
#tabs ul li:hover div.tab_center44
{background:#fff url(images/icon/tab_center.gif);}45

46
#tabs ul li a:hover div.tab_right,47
#tabs ul li:hover div.tab_right48
{background:#fff url(images/icon/tab_right.gif);}49

50
.clear {clear:both; height:0; line-height:0; overflow:hidden;}51
#tabs span.base {display:block; height:20px;font-size:10px; color:#bc8f8f; background:url(images/icon/bottom.gif) bottom;}52
#tabs div h5 {font-size:12px; margin-bottom:5px;}53
#tabs div p {font-weight:normal; text-align:left; color:#000; margin-top:2px;}54
#tabs div a img {border:0;}55
#tabs div img.image {float:left; border:0; margin-top:-35px; margin-right:5px;}56
#tabs div a.unlock {background:url(images/icon/unlock.gif); display:block; width:30px; height:30px; margin:0 auto;}57
#tabs div a:hover.unlock img {visibility:hidden;}58
#tabs p.bold {color:#069; padding-top:5px;}59
* html #tabs p.fire {margin-top:-15px;}60
* html #tabs form {margin-top:-20px;}61
#tabs p.buttons {text-align:center;}62
</style>63
<body>64

65
<div id="tabs">66
<p class="bold">Mini tabbed pages - 9th February 2007</p>67
<ul>68
<li><a href="#nogo" class="one outer">WORLD<!--[if IE 7]><!--></a><!--<![endif]-->69
<!--[if lte IE 6]><table><tr><td><![endif]-->70
<div class="tab_left">71
<h5>World Wide Web</h5>72
<p>This area can hold anything you like<a href="index.html">Main Menu</a>.</p>73
</div>74
<!--[if lte IE 6]></td></tr></table></a><![endif]-->75
</li>76
<li><a href="#nogo" class="two outer">UNLOCK<!--[if IE 7]><!--></a><!--<![endif]-->77
<!--[if lte IE 6]><table><tr><td><![endif]-->78
<div class="tab_center">79
<h5>Unlock the Secrets</h5>80
<a href="http://www.w3.org/Style/CSS/" class="unlock" title="Unlock the secrets of CSS at w3.org"><img src="images/icon/lock.gif" alt="Locked" title="Locked" /></a>81
</div>82
<!--[if lte IE 6]></td></tr></table></a><![endif]-->83
</li>84
<li><a href="#nogo" class="three outer">MAIL<!--[if IE 7]><!--></a><!--<![endif]-->85
<!--[if lte IE 6]><table><tr><td><![endif]-->86
<div class="tab_right">87
<h5>Email</h5>88
<p>Maybe a link to your emails or a form asking to login to<a href="http://www.cssplay.co.uk/w3c/contact.html%22%3EContact Page</a>.</p>89
</div>90
<!--[if lte IE 6]></td></tr></table></a><![endif]-->91
</li>92
</ul>93
<br class="clear" />94
<ul>95
<li><a href="#nogo" class="four outer">SEARCH<!--[if IE 7]><!--></a><!--<![endif]-->96
<!--[if lte IE 6]><table><tr><td><![endif]-->97
<div class="tab_left">98
<h5>Search This Site</h5>99
<p>You can add a search form here.</p>100
</div>101
<!--[if lte IE 6]></td></tr></table></a><![endif]-->102
</li>103
<li><a href="#nogo" class="five outer">PROFILE<!--[if IE 7]><!--></a><!--<![endif]-->104
<!--[if lte IE 6]><table><tr><td><![endif]-->105
<div class="tab_center">106
<h5>Your Profile</h5>107
<form id="two" action="
" method="post">108
<fieldset id="personal">109
<label for="login">login : </label> 110
<input name="login" id="login" type="text" tabindex="1" />111
</fieldset>112
<p class="buttons">113
<input id="button1" type="submit" value="Send" /> 114
<input id="button2" type="reset" value="Reset" />115
</p>116
</form>117
</div>118
<!--[if lte IE 6]></td></tr></table></a><![endif]-->119
</li>120
<li><a href="#nogo" class="six outer">DRAW<!--[if IE 7]><!--></a><!--<![endif]-->121
<!--[if lte IE 6]><table><tr><td><![endif]-->122
<div class="tab_right">123
<h5>Learn how to Draw</h5>124
<a href="http://www.adobe.com/products/fireworks/%22%3E%3Cimg class="image" src="images/icon/fireworks.gif" alt="Adobe Fireworks 8" title="Adobe Firerworks 8" /></a>125
<p class="fire">Get top-quality design results. </p>126
</div>127
<!--[if lte IE 6]></td></tr></table></a><![endif]-->128
</li>129
</ul>130
<br class="clear" />131
<span class="base">©2007 Stu Nicholls - All rights reserved</span>132
</div>133

134
</body>135
</html>136


浙公网安备 33010602011771号