6、图片淡出的一个代码

6、图片淡出的一个代码

<!--<body onLoad="fade()">替换原来的<Body>-->

<!--将以下代码加入HTML<Body></Body>之间-->

 

<img src="image\flag.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><SCRIPT type="text/javascript" src=""></SCRIPT>

<SCRIPT language="JavaScript">

<!--

BaiduWriteAD("zouwenyedg","3");

//-->

</SCRIPT>

</form>

 

 

 

 

 

 

 

 

 

 

 

 

 

<p> </p>

<p> </p>

<p> </p>

<p> </p>

<p> </p>

<p> </p>

<p>1</p>

<p>1</p>

<p>1</p>

<p>1</p>

<p>1</p>

<p>1</p>

<p>1</p>

<p>1</p>

<p>1</p>

<p>1</p>

<p>1</p>

<p>1</p>

<p>1</p>

<p>1</p>

<p>1</p>

<p>1</p>

<p> </p>

 

 

 

 

 

</body>

 

</html>

 

Write a comment

Comments: 0