图片渐渐显示(谈入)
第一步:把如下代码加入<body>区域中
<img src="http://my.6to23.com/redriver/helpor/picture/swimming.gif" name="u" border=0
alt="Image" style="filter:alpha(opacity=0)">
<script language="JavaScript">
var b = 1;
var c = true;
function fade(){
if(document.all);
if(c == true) {
b++;
}
if(b==100) {
b--;
c = false
}
if(b==10) {
b++;
c = true;
}
if(c == false) {
b--;
}
u.filters.alpha.opacity=0 + b;
setTimeout("fade()",50);
}
</script>
第二步:把<body>区域改为
<body bgcolor="#fef4d9" onLoad="fade()">
<img src="http://my.6to23.com/redriver/helpor/picture/swimming.gif" name="u" border=0
alt="Image" style="filter:alpha(opacity=0)">
<script language="JavaScript">
var b = 1;
var c = true;
function fade(){
if(document.all);
if(c == true) {
b++;
}
if(b==100) {
b--;
c = false
}
if(b==10) {
b++;
c = true;
}
if(c == false) {
b--;
}
u.filters.alpha.opacity=0 + b;
setTimeout("fade()",50);
}
</script>
第二步:把<body>区域改为
<body bgcolor="#fef4d9" onLoad="fade()">