div逐个显示
<!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>div逐个显示效果 - 80062.com,aaoo.net</title>
<style type="text/css">
#container{ width:60%; height:80%; position:absolute; text-align:center}
#div1,#div2,#div3,#div4,#div5,#div6,#div7,#div8,#div9,#div10,#div11,#div12{ width:80px; height:80px; background:#eeeeee; margin:0 2px 2px 0; padding:20px; border:3px #ccc double; font:30px Verdana, Arial, Helvetica, sans-serif; color:#666; float:left; display:none }
</style>
<script language="javascript">
var i=1,j
function shoppingcat(){
if(i<=12){
document.getElementById('div'+i).style.display='block'
if((j>=1)&&(j<=11)){
document.getElementById('div'+j).style.border='3px #666 double'
document.getElementById('div'+j).style.background='#ccc'}
i++
j=i-1
setTimeout('shoppingcat()',500)
}
else if(i=13)
{document.getElementById('div'+j).style.border='3px #666 double'
document.getElementById('div'+j).style.background='#ccc'}
}
</script>
</head>
<body>
<div id="container" align="center">
<div id="div1">1</div>
<div id="div2">2</div>
<div id="div3">3</div>
<div id="div4">4</div>
<div id="div5">5</div>
<div id="div6">6</div>
<div id="div7">7</div>
<div id="div8">8</div>
<div id="div9">9</div>
<div id="div10">10</div>
<div id="div11">11</div>
<div id="div12">12</div>
</div>
</body>
</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>用div-css实现的比较酷的头像显示效果</title>
<style>
body {
font-size:12px;
line-height:1.8;
font-family:Verdana, "宋体", Arial,Sans;
text-align:center;
background:#FFF;
color:#666;
margin:50px;
padding:0;
list-style:none;
}
a:link,a:visited {
color:#009;
text-decoration:underline;
}
a:hover,a:active {
color:#000;
text-decoration:none;
}
#zishu_test li {
float:left;
width:14%;
text-align:center;
margin:0 auto;
list-style:none;
}
#zishu_test li a {
border-right:1px solid #fff;
border-bottom:1px solid #fff;
width:100px;
height:110px;
background:#fff;
display:block;
padding-top:10px;
margin:auto;
}
#zishu_test li img {
width:75px;
height:75px;
display:block;
text-align:center;
margin:auto;
background:#FFF;
padding:3px;
border:1px solid #D8A18B;
}
#zishu_test li span {
display:none;
}
#zishu_test li a:hover span {
margin-top:-10px;
display:block;
border-bottom:1px solid #666;
border-right:1px solid #666;
background:#FA9000;
width:100px;
color:#FFF;
position:absolute;
}
* html #zishu_test li a:hover span {
margin-left:-8px;
}
/* IE6 */
*+html #zishu_test li a:hover span {
margin-left:-8px;
}
/* IE7*/
#zishu_test li a:hover {
border-right:1px solid #D8A18B;
border-bottom:1px solid #D8A18B;
width:100px;
height:110px;
background:#F5F5F5;
display:block;
padding-top:10px;
}</style>
</head>
<body>
<div id="zishu_test">
<ul>
<li><a href="#"><span>64d / 47 hits</span><img src="http://yy.kijiji.cn/img/p/10000009.jpg">pixu</a></li>
<li><a href="#"><span>24d / 35 hits</span><img src="http://yy.kijiji.cn/img/p/294343.jpg">秀才</a></li>
<li><a href="#"><span>66d / 87 hits</span><img src="http://yy.kijiji.cn/img/p/10000010.jpg">透露</a></li>
<li><a href="#"><span>40d / 34 hits</span><img src="http://yy.kijiji.cn/img/p/11709126.jpg">LIVID</a></li>
<li><a href="#"><span>47d / 56 hits</span><img src="http://yy.kijiji.cn/img/p/10000002.jpg">老孟</a></li>
<li><a href="#"><span>42d / 36hits</span><img src="http://yy.kijiji.cn/img/p/11695932.jpg">小玉</a></li>
<li><a href="#"><span>63d / 67 hits</span><img src="http://yy.kijiji.cn/img/p/10000025.jpg">pixu</a></li>
</ul>
</div>
<br />
</body>
</html>
图片的滤镜效果
打扮美化新浪博客(2.图片效果)
一.图片的滤镜效果
准备:插入图片后进入"原代码编辑"模式,找到插入的图片代码域,对其进行修改.
比如插入右图后点击"显示原代码",找到相应的代码.为:
<IMG src="http://blog.sina.com.cn/pic/56d016d6020000n3">
1.透明效果
格式:
<img src="图片地址" style="filter:Alpha(opacity=100,finishOpacity=0,style=0)">
或
<div style="filter:Alpha(opacity=100,finishOpacity=0,style=0) ;width:宽;height:高"><img src="图片地址"></div>
涉及到的属性:修改数值对应即可
opacity:开始处的透明度
finishOpacity:结束处的透明度
style:0,平均透明 1,线状透明 2,圆形透明 3,菱形透明
2.翻转效果
左右翻转格式:
<img src="图片地址" style="filter:FlipH">
或
<div style="filter:FlipH ;width:宽;height:高"><img src="图片地址"></div>
上下翻转格式:
<img src="图片地址" style="filter:FlipV">
或
<div style="filter:FlipV ;width:宽;height:高"><img src="图片地址"></div>
3.变调效果
灰调格式:
<img src="图片地址" style="filter:Gray">
或
<div style="filter:Gray ;width:宽;height:高"><img src="图片地址"></div>
X光效果:
<img src="图片地址" style="filter:Xray">
或
<div style="filter:Xray ;width:宽;height:高"><img src="图片地址"></div>
色彩对换:
<img src="图片地址" style="filter:Invert">
或
<div style="filter:Invert ;width:宽;height:高"><img src="图片地址"></div>
4.边框效果(来自小缘人)
发光:(color为发光颜色代码,strength是发光强度,滤镜宽=图宽+发光强度x2
滤镜高=图高+发光强度x2+10)
<div style="filter:Glow(color=#4A7AC9,strength=15);width:滤镜宽;height:滤镜高" align=center><br><img src="图片地址"></div>
投影:(color为发光颜色代码,direction方向(只能是45度的倍数如:45,90,135,180,225,270,315度),滤镜宽=图宽+25)
??高=图高40)
<div style="filter:Shadow(color=#4A7AC9,direction=135);width:滤镜宽;height:滤镜高" align=center><br><img src="图片地址"></div>
阴影:(color为发光颜色代码,offX水平位移offY垂直位移(可正可负),滤镜宽=图宽+水平位移绝对值+10,滤镜高=图高+垂直位移绝对值+20)
<div style="filter:Dropshadow(color=#333333,offX=5,offY=5);width:滤镜宽;height:滤镜高" align=center><br><img src="图片地址"></div>
模糊:(direction方向(只能是45度的倍数如:45,90,135,180,225,270,315度),滤镜宽=图宽+15,??高=图高+30)
<div style="filter:Blur(direction=135);width:滤镜宽;height:滤镜高" align=center><br><img src="图片地址"></div>
波形:(freq频率(>0)strength振幅强度(>0)lightstrength波峰强度(0~100愈高越黑)phase起始相位(0~100),滤镜宽=图宽+振幅强度x2
滤镜高=图高+振幅强度x2+10)
<div style="filter:Wave(freq=7,strength=9,lightstrength=5,phase=5);width:滤镜宽;height:滤镜高" align=center><br><img src="图片地址"></div>