<style type="text/css">
.box li{float:left; width:105px;height:90px;overflow:hidden; text-align:center;}
.box li p{ display:block;width:95px;overflow:hidden; height:25px; line-height:25px; text-align:center; margin:0 5px;}
.box li span a{width:95px; height:53px; overflow:hidden;text-align:center; display:block; border:1px #000 solid;}
.box li span a img{width:95px; height:53px; border:none;}
.box li span a:hover{border:5px #000 solid;position:absolute;width:150px;height:88px;overflow:hidden; margin: -15px 0 0 -15px;}
.box li span a:hover img{width:150px;height:88px;order:none;}
</style>
<ul class="box">
<li><span><a href="#"><img src="ps处理后的图片/DSCF1819.jpg"></a></span><p>DDD</p></li>
<li ><span><a href="#"><img src="ps处理后的图片/路径面板使用.jpg"></a></span><p>DDD</p></li>
<li ><span><a href="#"><img src="ps处理后的图片/DSCF1819.jpg"></a></span><p>DDD</p></li>
<li ><span><a href="#"><img src="ps处理后的图片/DSCF1819.jpg"></a></span><p>DDD</p></li>
<li ><span><a href="#"><img src="ps处理后的图片/DSCF1819.jpg"></a></span><p>DDD</p></li>
<li ><span><a href="#"><img src="ps处理后的图片/DSCF1819.jpg"></a></span><p>DDD</p></li>
</ul>
<style type="text/css">
.highlightit img{
border: 1px solid #ccc;
}
.highlightit:hover img{
height:100px;
width:100px;
display:inline;
position:absolute;
border: 1px solid navy;
filter:alpha(opacity=80);
}
.highlightit:hover{
color: red; /* Dummy definition to overcome IE bug */
}
</style>
<div style="display:inline; position:relative;">
<a href="http://www.alixixi.com/" class="highlightit"><img " src="images/img/index01.jpg"/ alt="" /></a>
<a href="http://www.google.com/" class="highlightit"><img src="images/img/index01.jpg"/ alt="" /></a>
</div>
<!--把下面代码加到<head>与</head>之间-->
<style type="text/css">
<!--
body {text-align: center; margin:0; padding:0; background: #FFF; font-size:12px; color:#000;}
div,form,img,ul,ol,li,dl,dt,dd {margin: 0; padding: 0; border: 0;}
h1,h2,h3,h4,h5,h6 { margin:0; padding:0;}
table,td,tr,th{font-size:12px;}
a:link {color: #000; text-decoration:none;}
a:visited {color: #83006f;text-decoration:none;}
a:hover {color: #c00; text-decoration:underline;}
a:active {color: #000;}
.focusPic{margin:0 auto; width:244px;}
.focusPic .pic{margin:0 auto; width:240px; height:180px; padding:2px 0 0;}
.focusPic .adPic{margin:0 auto 5px; width:240px; height:29px; overflow:hidden;}
.focusPic .adPic .text{float:right; padding:9px 4px 0 0; width:140px;}
.focusPic .adPic .text a{color:#1f3a87;}
.focusPic .adPic .text a:hover{color:#bc2931;}
.focusPic h2{ float:left; width:232px;padding:4px 0 3px 12px; font-size:14px; text-align:left;}
.focusPic p{float:left; width:226px;line-height:160%; margin:0; text-align:left;padding:0 0 10px 12px;}
.focusPic p img {margin:0px 0 2px;}
.focusPic .more{margin:0 auto; width:240px; }
.focusPic .more .textNum{float:right; margin:0 8px 0 0;padding:0 0 4px;}
.focusPic .more .textNum .text{float:left; font-weight:bold; padding:7px 6px 0 0; color:#666;}
.focusPic .more .textNum .num{float:left; width:113px; height:19px;}
.focusPic .more .textNum .bg1{ background:url(http://www.zzsky.cn/effect/images/200903230900_num1.gif);}
.focusPic .more .textNum .bg2{ background:url(http://www.zzsky.cn/effect/images/200903230900_num2.gif);}
.focusPic .more .textNum .bg3{ background:url(http://www.zzsky.cn/effect/images/200903230900_num3.gif);}
.focusPic .more .textNum .bg4{ background:url(http://www.zzsky.cn/effect/images/200903230900_num4.gif);}
.focusPic .more .textNum .num ul{ float:left; width:113px;}
.focusPic .more .textNum .num li{float:left; width:28px; font-weight:bold;display:block; color:#fff; list-style-type:none; padding:6px 0 0;}
.focusPic .more .textNum .num li a{color:#fff; padding:0 5px;}
.focusPic .more .textNum .num li a:visited{color:#fff;}
.focusPic .more .textNum .num li a:hover{color:#ff0;}
-->
</style>
<script language="JavaScript" type="text/javascript">
var nn;
nn=1;
setTimeout('change_img()',6000);
function change_img()
{
if(nn>4) nn=1
setTimeout('setFocus1('+nn+')',6000);
nn++;
tt=setTimeout('change_img()',6000);
}
function setFocus1(i)
{
selectLayer1(i);
}
function selectLayer1(i)
{
switch(i)
{
case 1:
document.getElementById("focusPic1").style.display="block";
document.getElementById("focusPic2").style.display="none";
document.getElementById("focusPic3").style.display="none";
document.getElementById("focusPic4").style.display="none";
document.getElementById("focusPic1nav").style.display="block";
document.getElementById("focusPic2nav").style.display="none";
document.getElementById("focusPic3nav").style.display="none";
document.getElementById("focusPic4nav").style.display="none";
break;
case 2:
document.getElementById("focusPic1").style.display="none";
document.getElementById("focusPic2").style.display="block";
document.getElementById("focusPic3").style.display="none";
document.getElementById("focusPic4").style.display="none";
document.getElementById("focusPic1nav").style.display="none";
document.getElementById("focusPic2nav").style.display="block";
document.getElementById("focusPic3nav").style.display="none";
document.getElementById("focusPic4nav").style.display="none";
break;
case 3:
document.getElementById("focusPic1").style.display="none";
document.getElementById("focusPic2").style.display="none";
document.getElementById("focusPic3").style.display="block";
document.getElementById("focusPic4").style.display="none";
document.getElementById("focusPic1nav").style.display="none";
document.getElementById("focusPic2nav").style.display="none";
document.getElementById("focusPic3nav").style.display="block";
document.getElementById("focusPic4nav").style.display="none";
break;
case 4:
document.getElementById("focusPic1").style.display="none";
document.getElementById("focusPic2").style.display="none";
document.getElementById("focusPic3").style.display="none";
document.getElementById("focusPic4").style.display="block";
document.getElementById("focusPic1nav").style.display="none";
document.getElementById("focusPic2nav").style.display="none";
document.getElementById("focusPic3nav").style.display="none";
document.getElementById("focusPic4nav").style.display="block";
break;
}
}
</script>
</head>
<body>
<!--把下面代码加到<body>与</body>之间-->
<div class="focusPic">
<div id="focusPic1" style="display:block;">
<div class="pic"><a href="#"><img src="http://www.zzsky.cn/effect/images/200903230900_pic1.jpg" alt="网易学院05年软件评选结果" width="240" height="180" border="0" onclick="javascript:window.open(this.src);" style="cursor:pointer"></a></div>
<h2><a href="#">网易学院05年软件评选结果</a></h2>
<p>经过大家的热情投票和我们的辛劳整理,网易学院2005年年度软件评选结果终于出炉啦。点击进入查看……<a href="#" class="cDRed">详细</a></p>
</div>
<div id="focusPic2" style="display:none;">
<div class="pic"><a href="#"><img src="http://www.zzsky.cn/effect/images/200903230900_pic2.jpg" alt="颠覆丛林动物生存法则" width="240" height="180" border="0" onclick="javascript:window.open(this.src);" style="cursor:pointer"></a></div>
<h2><a href="#">颠覆丛林动物生存法则</a></h2>
<p>群居动物的这种行为颠覆了我们通常认为的,在动物世界通行的 “丛林法则”,动物不都自私,不都是弱肉强食的。<a href="#" class="cDRed">详细</a></p>
</div>
<div id="focusPic3" style="display:none;">
<div class="pic"><a href="#"><img src="http://www.zzsky.cn/effect/images/200903230900_pic3.jpg" alt="WAPI并非贸易阴谋" width="240" height="180" border="0" onclick="javascript:window.open(this.src);" style="cursor:pointer"></a></div>
<h2><a href="#">WAPI并非贸易阴谋</a></h2>
<p>近日国家做出决定:“将向其他的国内及国外企业公布该算法”。事实证明中国WAPI标准并非是贸易阴谋。<a href="#" class="cDRed">详细</a></p>
</div>
<div id="focusPic4" style="display:none;">
<div class="pic"><a href="#"><img src="http://www.zzsky.cn/effect/images/200903230900_pic4.jpg" alt="新视野号探测冥王星特别专题" width="240" height="180" border="0" onclick="javascript:window.open(this.src);" style="cursor:pointer"></a></div>
<h2><a href="#">新视野号探测冥王星特别专题</a></h2>
<p>美国宇航局将于北京时间18日凌晨2时24分发射新视野号探测器,造访这颗人类唯一尚未探测过的行星-冥王星。<a href="#" class="cDRed">详细</a></p>
</div>
<div class="more">
<div class="textNum">
<div class="text">>>更多头图新闻</div>
<div class="num bg1" id="focusPic1nav" style="display:block;">
<ul>
<li>1</li>
<li><a href="javascript:setFocus1(2);" target="_self">2</a></li>
<li><a href="javascript:setFocus1(3);" target="_self">3</a></li>
<li><a href="javascript:setFocus1(4);" target="_self">4</a></li>
</ul>
</div>
<div class="num bg2" id="focusPic2nav" style="display:none;">
<ul>
<li><a href="javascript:setFocus1(1);" target="_self">1</a></li>
<li>2</li>
<li><a href="javascript:setFocus1(3);" target="_self">3</a></li>
<li><a href="javascript:setFocus1(4);" target="_self">4</a></li>
</ul>
</div>
<div class="num bg3" id="focusPic3nav" style="display:none;">
<ul>
<li><a href="javascript:setFocus1(1);" target="_self">1</a></li>
<li><a href="javascript:setFocus1(2);" target="_self">2</a></li>
<li>3</li>
<li><a href="javascript:setFocus1(4);" target="_self">4</a></li>
</ul>
</div>
<div class="num bg4" id="focusPic4nav" style="display:none;">
<ul>
<li><a href="javascript:setFocus1(1);" target="_self">1</a></li>
<li><a href="javascript:setFocus1(2);" target="_self">2</a></li>
<li><a href="javascript:setFocus1(3);" target="_self">3</a></li>
<li>4</li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>
<style type="text/css">
a{text-decoration: none;}
#a{ background-color: #5DFD43;cursor: hand;}
</style>
<script type="text/javascript">
function show(obj) {
for (var i = 1; i <= 3; i++) {
document.getElementById("aa" + i).style.display = "none";
}
document.getElementById(obj).style.display = "inline";
}
</script>
--------------------------------------------------------
<div style="background-color: #3FF; width: 100px; padding-left:10px;">
<div>
<div onclick="show('aa1')" id="a">AAA</div>
<div style="display: none;" id="aa1">
<br /><a href="#">a</a>
<br /><a href="#">aaa</a>
<br /><a href="#">aaaaa</a>
</div>
</div>
<div>
<div onclick="show('aa2')" id="a">BBB</div>
<div style="display: none;" id="aa2">
<br /><a href="#">B</a>
<br /><a href="#">BBB</a>
<br /><a href="#">BBBBB</a>
</div>
</div>
<div>
<div onclick="show('aa3')" id="a">CCC</div>
<div style="display: none;" id="aa3">
<br /><a href="#">C</a>
<br /><a href="#">CCC</a>
<br /><a href="#">CCCCC</a>
</div>
</div>
</div>
<script language="javascript">
function show1(){
document.getElementById("ccc").className = "aa";
}
function show2(){
document.getElementById("ccc").className = "bb";
}
</script>
<style type="text/css">
.aa{
background-color:#87FACB;
width:300px;
height:300px;
}
.bb{
background-color:#5DFD43;
width:200px;
height:200px;
}
</style>
------------------------------------------------
<div onmousemove="show1()" id="ccc" onmouseout="show2()" class="aa">
鼠标进出—变大小背景色
</div>
<style type="text/css">
body {
background: #fff;
font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
font-size: 12px;
}
.menu {
font-family: tahoma, geneva, "lucida sans unicode", "lucida grande",verdana, sans-serif;
width:500px;
height:355px;
background:#fff url(/jscss/demoimg/200906/meeting.jpg) 0 20px no-repeat;
position:relative;
margin:2em 125px 0 125px;
font-family: tahoma, geneva, "lucida sans unicode", "lucida grande",verdana, sans-serif;
}
.menu ul {
padding:0;
margin:0;
list-style-type: none;
}
.menu ul li {
float:left;
position:relative;
}
/* set up www.codefans.net */
.menu ul li a, .menu ul li a:visited {
display:block;
text-decoration:none;
color:#000;
width:88px;
height:1.5em;
font-weight:bold;
color:#888;
border-bottom:8px solid #888;
background:#fff;
padding-left:10px;
line-height:1.5em;
margin-right:2px;
}
/* hack for IE5.5 to correct the faulty box model */
* html .menu ul li a, .menu ul li a:visited {
width:98px;
w\idth:88px;
}
/* hide the drop down menu */
.menu ul li ul {
display: none;
}
/* www.codefans.net remove all table style so that it does not interfere with the menu */
.menu table {
margin:-1px;
border-collapse:collapse;
font-size:1em;
}
.menu ul li:hover a,
.menu ul li a:hover {
color:#000;
border-bottom:8px solid #606;
}
/* make the drop down menu show www.codefans.net */
.menu ul li:hover ul,
.menu ul li a:hover ul {
display:block;
position:absolute;
top:1.2em;
margin-top:11px;
left:0;
width:96px;
border:1px solid #888;
border-top:0;
background:transparent;
}
/* style the drop down links with no hover www.codefans.net */
.menu ul li:hover ul li a,
.menu ul li a:hover ul li a {
display:block;
color:#000;
border:0;
margin:0;
color:#333;
font-weight:normal;
font-size:0.9em;
height:auto;
line-height:1em;
padding:5px;
width:86px
}
.menu ul li:hover ul li a:hover,
.menu ul li a:hover ul li a:hover {
background:#888;
color:#fff;
}
.menu ul li a:hover ul {
background:transparent filter: alpha(opacity=80);
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=80);
opacity:0.8;
margin-top:10px;
marg\in-top:11px;
}
.menu ul li a:hover ul li a {
background:#ddd;
width:96px;
w\idth:86px;
}
p.strike {text-decoration:line-through;}
</style>
---------------------------------------------------------
<div class="menu">
<ul>
<li><a class="drop" href="/">源码爱好者<!--[if IE 7]><!--></a><!--<![endif]-->
<table><tr><td>
<ul>
<li><a href="/" title="Wrapping text around images">Codefans.NET</a></li>
<li><a href="http://codefans.net" title="Styling forms">CODEFANS.NET</a></li>
<li><a href="/" title="Removing active/focus borders">Active</a></li>
</ul>
</td></tr></table>
<!--[if lte IE 6]></a><![endif]-->
</li>
<li><a href="/">盒子<!--[if IE 7]><!--></a><!--<![endif]-->
<table><tr><td>
<ul>
<li><a href="/" title="a coded list of spies">Box</a></li>
<li><a href="http://codefans.net" title="a horizontal vertical menu">水平菜单</a></li>
</ul>
</td></tr></table>
<!--[if lte IE 6]></a><![endif]-->
</li>
<li><a href="/">火狐<!--[if IE 7]><!--></a><!--<![endif]-->
<table><tr><td>
<ul>
<li><a href="http://codefans.net" title="A drop down menu">IT技术</a></li>
<li><a href="/" title="A cascading menu">SOHO一族</a></li>
<li><a href="http://codefans.net" title="Snooker cue">月光无限</a></li>
</ul>
</td></tr></table>
<!--[if lte IE 6]></a><![endif]-->
</li>
<li><a href="/">Explorer<!--[if IE 7]><!--></a><!--<![endif]-->
<table><tr><td>
<ul>
<li><a href="http://codefans.net" title="Weft fonts">CSS技术</a></li>
<li><a href="/" title="Vertical align">防火墙</a></li>
</ul>
</td></tr></table><!--[if lte IE 6]></a><![endif]-->
</li>
<li><a href="../opacity/index.html">演示<!--[if IE 7]><!--></a><!--<![endif]-->
<table><tr><td>
<ul>
<li><a href="/" title="colour wheel">菜单示例</a></li>
<li><a href="http://codefans.net" title="a menu using opacity">Ajax技术</a></li>
<li><a href="/" title="partial opacity">网站菜单</a></li>
</ul>
</td></tr></table>
<!--[if lte IE 6]></a><![endif]-->
</li>
</ul>
</div>